2008年12月14日星期日

Re: [fw-mvc] CMS supermodule design

Hi,

maybe you could separate your bootstrap in two files (frontend/backend ).
In your htaccess you can route to backend file if admin (or whatever ) is
in the path.

To my mind, it's better to separate admin and frontend config


angelbit wrote:
>
> admin is not a mobule but a container for modules...
>
> keith Pope-4 wrote:
>>
>> Sounds like you need to add a route, maybe something along the lines of:
>>
>> $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]
>> ----------------------------------------------------------------------
>>
>>
>
>

--
View this message in context: http://www.nabble.com/CMS-supermodule-design-tp21000480p21000808.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: