I have to detect which Controller is routed before the view script is called (so postDispatch() isn't appropriate).
class PerchProvider extends Zend_Controller_Plugin_Abstract
{
public function routeShutdown(Zend_Controller_Request_Abstract $request)
{
//if (--CONTROLLERNAME-- != "Error") {
include APPLICATION_PATH . '/../public/perch/runtime.php';
// }
}
}
How can I access the name of the Controller?
Cheers