开发者

Zend like modules in cakephp

is there a way to do modules in cakephp like zend framework modules ? In zend framework, you have a folder 'modules' like following structure:

/application/modules/admin
/application/modules/site
/application/modules/service 

and it's routed in this way:

http://myapp.local/admin
开发者_JAVA技巧http://myapp.local/service
http://myapp.local/ -- to site module (default).

The models are shared, just controlllers are module specific. How can I achieve this in CakePHP? There's a better way to do this type things in cake ?

Thanks in advANCE


if you use plugins, you can do it, as you have shown above. cakephp plugins


I found this http://book.cakephp.org/view/950/Prefix-Routing . With that, I can have same experience as Zend modules.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜