Created
December 13, 2011 01:05
-
-
Save eminetto/1469916 to your computer and use it in GitHub Desktop.
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
/** | |
* Inicializa as rotas | |
* | |
* @return void | |
* @author Elton Minetto | |
*/ | |
public function _initRoutes() | |
{ | |
$updateRoute = new Zend_Controller_Router_Route( | |
'atualizar/:id', | |
array( | |
'controller' => 'post', | |
'action' => 'update' | |
) | |
); | |
$deleteRoute = new Zend_Controller_Router_Route( | |
'excluir/:id', | |
array( | |
'controller' => 'post', | |
'action' => 'delete' | |
) | |
); | |
$router = Zend_Controller_Front::getInstance()->getRouter(); | |
$router->addRoute('updateRoute', $updateRoute); | |
$router->addRoute('deleteRoute', $deleteRoute); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment