Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2011
3,652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1. $router->addRoute(
  2.     'admin_brand', new Zend_Controller_Router_Route('admin/brand/:page',
  3.         array('module' => 'brand', 'controller' => 'index', 'action' => 'index', 'page' => 1),
  4.         array('page' => '\d+')
  5.     )
  6. );
  7.  
  8. $router->addRoute(
  9.     'admin_brand_add', new Zend_Controller_Router_Route('admin/brand/add',
  10.         array('module' => 'brand', 'controller' => 'edit', 'action' => 'add', 'mode' => 'add'))
  11. );
  12.  
  13. $router->addRoute(
  14.     'admin_brand_edit', new Zend_Controller_Router_Route('admin/brand/edit/:brand_id',
  15.         array('module' => 'brand', 'controller' => 'edit', 'action' => 'edit', 'mode' => 'edit'),
  16.         array('brand_id' => '\d+')
  17.     )
  18. );
  19.  
  20. $router->addRoute(
  21.     'admin_brand_system_add', new Zend_Controller_Router_Route('admin/brand/:brand_id/system/add',
  22.         array('module' => 'brand', 'controller' => 'system_edit', 'action' => 'add', 'mode' => 'add'),
  23.         array('brand_id' => '\d+')
  24.     )
  25. );
  26.  
  27. $router->addRoute(
  28.     'admin_brand_system_edit', new Zend_Controller_Router_Route('admin/brand/:brand_id/system/edit/:brand_system_id',
  29.         array('module' => 'brand', 'controller' => 'system_edit', 'action' => 'edit', 'mode' => 'edit'),
  30.         array('brand_id' => '\d+', 'brand_system_id' => '\d+')
  31.     )
  32. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement