Skip to content
Browse files

more ad routes changed

  • Loading branch information...
1 parent df11b4c commit 963e8dac9f947361c96fb0af1bd9958ef0eeee7c @jipipayo jipipayo committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 application/Bootstrap.php
View
4 application/Bootstrap.php
@@ -109,6 +109,8 @@ protected function _initFront()
$routeAdAll = new Zend_Controller_Router_Route( ':language/ad/listall/*', array( 'language' => null, 'controller' => 'ad', 'action' => 'listall'));
$routeAdListUSer = new Zend_Controller_Router_Route( ':language/ad/listuser/*', array( 'language' => null, 'controller' => 'ad', 'action' => 'listuser'));
$routeAdCreate = new Zend_Controller_Router_Route( ':language/ad/create/*', array( 'language' => null, 'controller' => 'ad', 'action' => 'create'));
+ $routeAdEdit = new Zend_Controller_Router_Route( ':language/ad/create/*', array( 'language' => null, 'controller' => 'ad', 'action' => 'edit'));
+ $routeAdDelete = new Zend_Controller_Router_Route( ':language/ad/delete/*', array( 'language' => null, 'controller' => 'ad', 'action' => 'delete'));
$router->addRoute ( 'default', $routeLang );//important, put the default route first!
@@ -118,6 +120,8 @@ protected function _initFront()
$router->addRoute ( 'ad/listall', $routeAdAll );
$router->addRoute ( 'ad/listall', $routeAdListUSer);
$router->addRoute ( 'ad/create', $routeAdCreate);
+ $router->addRoute ( 'ad/edit', $routeAdEdit);
+ $router->addRoute ( 'ad/delete', $routeAdDelete);
$front->setRouter ( $router );
return $front;

0 comments on commit 963e8da

Please sign in to comment.
Something went wrong with that request. Please try again.