Created
March 2, 2014 09:02
-
-
Save tournasdim/9303885 to your computer and use it in GitHub Desktop.
Add a custom route or alias to your ZF1-application . Paste the code into application/bootstrap.php
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
protected function _initRouter() | |
{ | |
$frontController = Zend_Controller_Front::getInstance(); | |
$router = $frontController->getRouter(); | |
// Product view route | |
$route = new Zend_Controller_Router_Route( | |
'/home', | |
array( | |
'controller' => 'index', | |
'action' => 'index' | |
)); | |
$router->addRoute('home', $route); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment