Created
April 3, 2011 13:11
-
-
Save rich97/900418 to your computer and use it in GitHub Desktop.
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 | |
namespace li3_cms\action; | |
class Controller extends \lithium\action\Controller { | |
} |
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 | |
use \lithium\net\http\Router; | |
Router::connect( | |
'/admin', | |
array('library' => 'li3_cms', 'controller' => 'dashboard', 'action' => 'index'), | |
array('persist' => array('library', 'controller')) | |
); | |
Router::connect( | |
'/admin/{:controller}', | |
array('library' => 'li3_cms', 'action' => 'index'), | |
array('persist' => array('library')) | |
); | |
Router::connect( | |
'/admin/{:controller}/{:action}', | |
array('library' => 'li3_cms'), | |
array('persist' => array('library')) | |
); | |
Router::connect( | |
'/admin/{:controller}/{:action}/{:args}', | |
array('library' => 'li3_cms'), | |
array('persist' => array('library')) | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment