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 dbpageAction () .
should be served by. I have the following route (and their respective control actions) in a controller:
-
/ contactus
/ sitemap
Code> / aboutus (dbpageAction)
or
Any other DB generated page also
dbpageAction () < / Code>
The same method may be used in your controller
< Code> public function notFoundAction () {resonance "action does not exist"; // your code here}
Comments
Post a Comment