Check if a controller exists using Zend Framework


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $front = Zend_Controller_Front::getInstance();
  2. if ($front->getDispatcher()->isDispatchable($request)) {
  3. // Controller exists
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.