Link to home
Start Free TrialLog in
Avatar of adybee
adybee

asked on

help with zend, handle 503 error

I need to point a 503 error to an error controller that returns a 503 header


Does this look right?

class Errorhandler_Outage extends ZEND_Controller_Action {

      /**
      * errorAction
      */
      public function errorAction(){
                           
            throw new Zend_Controller_Action_Exception(
                  $e->getMessage(), 503);
            }
           
      }
}
ASKER CERTIFIED SOLUTION
Avatar of DennisBecker
DennisBecker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial