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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -