开发者

Zend like modules in cakephp

开发者 https://www.devze.com 2023-03-11 03:14 出处:网络
is there a way to do modules in cakephp like zend framework modules ? In zend framework, you have a folder \'modules\' like following structure:

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

精彩评论

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