Created
January 9, 2014 14:24
-
-
Save xboston/8334860 to your computer and use it in GitHub Desktop.
Phalcon notFound test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$router = new Phalcon\Mvc\Router(false); | |
$router->notFound(array( | |
'controller' => 'user', | |
'action' => 'show404' | |
)); | |
$router->add('/login/', array( | |
'controller' => 'user', | |
'action' => 'login' | |
)); | |
$router->handle('/test/'); | |
$r = $router->getMatchedRoute(); | |
echo $router->getActionName(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment