We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Tipsy allows easy reference of a bunch of different services and models used within itself using Dependency Injection.
For a list of all available services, see Services.
$tipsy->router() ->when('user/:id', function($Params, $Scope, $View) { $Scope->user = $Params->id; $View->display('home'); });
// Define the User $tipsy->service('User', [ sup => function() { return 'Sup '.$this->user; } ]); // Set the route $tipsy->router() ->when('user', function($User) { echo $User->sup(); });