Skip to content

Instantly share code, notes, and snippets.

@jamiefdhurst
Created March 25, 2011 11:15
Show Gist options
  • Save jamiefdhurst/886699 to your computer and use it in GitHub Desktop.
Save jamiefdhurst/886699 to your computer and use it in GitHub Desktop.
Zend Module Route Example
// 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