Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //STEP USAGE
- //ROUTES.PHP
- // Step Test
- $app->get("/steptest(/:step)/", function($step = 0) use ($app) {
- global $cookie_name, $cookie_time;
- include( "views/StepTest.php" ); //
- });
- //VIEWS/STEPTEST.PHP
- <?php
- switch($step)
- {
- case "hello":
- $app->render("hello.html");
- break;
- case "goodbye":
- $app->render("goodbye.html");
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement