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
php
|zend-framework
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