$router = $this->_front->getRouter();
// Admin route
$route = new Zend_Controller_Router_Route(
'admin/:controller/:action',
array(
'action' => 'index',
'controller' => 'admin',
'module' => 'admin'
)
);
$router->addRoute('admin', $route);
This should route anything that matches /admin to your admin module.
2008/12/14 angelbit <angelbit88@gmail.com>:
>
> Hi
> I'm developing a cms where the modules have controller for the admin section
> and the public section.Now need that when the user go on url:
> /admin/:module/:controller/:action the dispatcher load the admin controller
> (Admin_pageController.php for example) and when is the public
> url(:module/:controller/:action) the dispatcher load the public controller.
> how? subclass the dispatcher or else?
>
> I thank you in advance
> --
> View this message in context: http://www.nabble.com/CMS-supermodule-design-tp21000480p21000480.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>
--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------
没有评论:
发表评论