Esempio n. 1
0
 /**
  * Returns an instance of Zend_Auth
  *
  * Singleton pattern implementation
  *
  * @return Zend_Auth Provides a fluent interface
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     //        self::$_instance = new self();
     try {
         if (!Zend_Session::isStarted()) {
             Zend_Session::start();
         }
     } catch (Zend_Session_Exception $e) {
         echo $e->getFile();
         echo $e->getMessage();
         echo $e->getTrace();
     }
     self::$_session_id = session_id();
     return self::$_instance;
 }