Use only one controller and view script?
Hi all,
I've read some stuff on modules however I'm new to Zend Framework and MVC, and just don't seem to be understanding it with regards to normal websites. Is there a way to have a default controller that handles all http requests?
I'm creating a very simply CMS that allows a user to add/edit/delete pages (and child pages). I want a module setup to handle the admin area (mysite.com/admin), and within this admin area I want a full application for adding content. This seems to be the easy part. The part I don't understand is how to make every other type of request (i.e. mysite.com/abc, mysite.com/123, mysite.com/abc/def/ghi, etc) use a default controller and view script. Other than the admin area, every page should work exactly the same; the only difference being the file it pulls content from, which will depend on the URL being requested. Advice would be great.
|