Created
March 25, 2011 11:15
-
-
Save jamiefdhurst/886699 to your computer and use it in GitHub Desktop.
Zend Module Route Example
This file contains hidden or 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
// Add the custom route for the gets action in the index controller of the slot module | |
$router = Zend_Controller_Front::getInstance()->getRouter(); | |
$route = new Zend_Controller_Router_Route( | |
'slots/get', | |
array( | |
'module' => 'slots', | |
'controller' => 'index', | |
'action' => 'get' | |
) | |
); | |
$router->addRoute('slots_get', $route); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment