I have a working zend mvc application that is using a layout, and this layout uses external stylesheets and scripts. Each page in the site has it's own controller, and the page-specific content for each page is in its index.phtml file. The layout works, and all the scripts/stylesheets are properly applied for each controller's index.phtml.
For example, the home page is "mvcProject/" which calls the index controller's index action which uses the index.phtml file respective to the index controller. Futhermore, the about us page is "mvcProject/about" which calls the about controller and displays views/about/index.phtml. Subjectively I felt that this structure was inefficient. The content of this site is only html, and I can't see why each page needs its own controller.
Therefore I tried to use only one controller to achieve the same end, that is to have the same architecture, by giving each page its own action within the single index controller. So now the "about us" page was "mvcProject/index/about" so that the index controller would call the about action which would use the views/index/about.phtml file.
This approach broke all of the links to external scripts/stylesheets in the layout. The layout still worked, but none of the links' paths would work. Obviously, this is a path-related issue, but I'm still relatively new to zend so I wasn't sure how to fix this. Therefore I went back and gave each page it's own controller again.
So my question is two fold: do I need concern myself with avoiding the bloat of giving each page its own controller, and if I do need to slim this structure down, what do I need to adjust to correct the links' paths? Thanks for your consideration.