zend framework2 - zf2 database driven pages, dynamically processesed from single action -
How can single dynamic action be used in ZF2 for all database-driven (CMS) pages?
If an action does not exist, it should be should be served by. I have the following route (and their respective control actions) in a controller: or Any other DB generated page also The same method may be used in your controller dbpageAction () .
/ contactus
/ sitemap
dbpageAction () < / Code>
< Code> public function notFoundAction () {resonance "action does not exist"; // your code here}
Comments
Post a Comment