There was an error while loading. Please reload this page.
See Installation for more information.
composer require tipsyphp/tipsy
use Tipsy\Tipsy; $tipsy = new Tipsy;
Routes can be closures, classes, or class instances. Here we create a route using a closure, and assign the internal $Scope and $View properties.
$tipsy->router() ->when('/', function($Scope, $View) { $Scope->user = 'Devin'; $View->display('home'); });
All views are PHTML View Templates. Create a file called home.phtml
<div class="content"> <h1>Welcome <?=$user?>!</h1> </div>
Once you have defined your stuff you can start the process like below.
$tipsy->run();
For more detailed examples see Examples.