The Hulme Ramblings of a web developer

Pete’s ZF Cheat Sheet

Routes

Create a custom route:

// Bootstrap.php
protected function _initRoute()
{
$ctrl = Zend_Controller_Front::getInstance();
$router = $ctrl->getRouter();
$router->addRoute(
'addNews',
new Zend_Controller_Router_Route(
'/photo/news/add', array(
'controller' => 'photo',
'action' => 'addnews'
)
)
);
}

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

Trackbacks are disabled.