开发者

Sub-pages in zend framework

开发者 https://www.devze.com 2023-03-02 21:28 出处:网络
it\'s probably obvious becau开发者_如何学Gose i didn\'t find anyone who talk\'s about it: there is module/controller/action - but what if the website depth is much deeper

it's probably obvious becau开发者_如何学Gose i didn't find anyone who talk's about it: there is module/controller/action - but what if the website depth is much deeper ? for example:

module/controller/action/sub-page(s)/sub-sub-page(s)/and so on..

is routes is the correct way for it?: puting the action for the module/controller/action/sub-page in the controller and making a route for it.

Am i missing something or this is the way to do it?


The Sub-page is a actually not a Sub-page but still rendered by an view script that refers to an controller/action.

Your logic would mean that after the view script is again a controller/action but this is not correct and would violate MVC structure.

Read Zend Framework & MVC Introduction.

0

精彩评论

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