Esempio n. 1
0
 public function init()
 {
     parent::init();
     $front = Zend_Controller_Front::getInstance();
     $front->registerPlugin(new Am_Controller_Plugin_Oto());
     $this->getDi()->hook->prepend(Am_Event::THANKS_PAGE, array($this, '_onThanksPage'));
 }
Esempio n. 2
0
 function init()
 {
     parent::init();
     $front = Zend_Controller_Front::getInstance();
     $front->getRouter()->addRoute('notification', new Zend_Controller_Router_Route('misc/notification/:action/:id', array('module' => 'default', 'controller' => 'direct', 'action' => 'index', 'type' => 'misc', 'plugin_id' => 'notification')));
 }