예제 #1
0
파일: Auth.php 프로젝트: visualweber/appzf1
 /**
  * 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;
 }