Exemple #1
0
 public static function factory(Zend_Controller_Request_Abstract $request)
 {
     if (!self::$_instance) {
         self::$_instance = new self($request);
     }
     return self::$_instance;
 }
Exemple #2
0
 public function routeShutdown(Zend_Controller_Request_Abstract $request)
 {
     $auth = Zend_Auth::getInstance();
     $auth->setStorage(Showcase_Auth_Storage_Db::factory($request));
     if ($request->isPost()) {
         if ($request->getPost('login')) {
             if (!$this->_login($request)) {
                 $request->getParam('View')->assign('exceptions', $this->_exceptions);
             }
         }
     }
     $user = Showcase_User::factory($auth->getIdentity());
     $request->setParam('User', $user);
     //$request->getParam('View')->register_object('user', $user);
     $request->getParam('View')->assign('user', $user);
 }