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.
The Tipsy app can be accessed either by it's static methods, object methods, or a combination of both.
$t = new Tipsy\Tipsy; $r->router()->home(function() { echo "it's good to be home"; }); $t->run();
Tipsy\Tipsy::router()->home(function() { echo "it's good to be home"; }); Tipsy\Tipsy::run();
or
use Tipsy\Tipsy; Tipsy::router()->home(function() { echo "it's good to be home"; }); Tipsy::run();
You probably only need this if you are doing weird stuff.
use Tipsy\Tipsy; $tipsy = Tipsy::app(); $tipsy->router()->home(function() { echo "it's good to be home"; }); Tipsy::run();