Advertisement
jeremykendall

Registering plugin

Aug 29th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. protected function _initPlugins()
  2.     {
  3.         $this->bootstrap('FrontController');
  4.         $front = $this->getResource('FrontController');
  5.  
  6.         $auth = Zend_Auth::getInstance();
  7.         $acl = new Fresh_Acl_Acl($auth);
  8.  
  9.         $front->setParam('auth', $auth);
  10.         $front->setParam('acl', $acl);
  11.         $front->registerPlugin(new Fresh_Controller_Plugin_Auth($auth, $acl));
  12.  
  13.         return $front;
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement