Zend Framework-does every webpage have it's own controller and indexAction and view?

Posted by Joel on Stack Overflow See other posts from Stack Overflow or by Joel
Published on 2010-06-08T23:54:50Z Indexed on 2010/06/09 0:52 UTC
Read the original article Hit count: 161

Filed under:
|

I'm wanting to be sure that I am setting things up correctly. On a typical website with 10 pages, would each page have it's own controller with it's own IndexAction and it's own View folder with it's own index.phtml as a view?

Or do you have one controller with multiple Page1Action, Page2Action, etc and have multiple differently named view.phtml pages within view/index folder?

I'm leaning toward the former because then I can have a cleaner controller for each page...

Is there a standard, or is it subjective?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework