/** * Return one and only one instance of the Zend_Controller_Front object * * @return Zend_Controller_Front */ public static function getInstance() { if (!self::$_instance instanceof self) { self::$_instance = new self(); } return self::$_instance; }
/** * Instance of Zend_Controller_Dispatcher_Interface * @var Zend_Controller_Dispatcher_Interface */ protected $_dispatcher = null; /** * Singleton instance *
/** * Singleton instance * * @return Zend_Controller_Front */ public static function getInstance() { if (null === Zend_Controller_Front::$_instance) { Zend_Controller_Front::$_instance = $front = new self(); $front->setRouter(); } return Zend_Controller_Front::$_instance; }