public static function getInstance() { if (!is_object(self::$_instance)) { //or if( is_null(self::$_instance) ) or if( self::$_instance == null ) self::$_instance = new Engine_Plugins_PluginLoader(); } return self::$_instance; }
protected function _initLoadPlugins() { $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('Engine_'); $objPluginLoader = Engine_Plugins_PluginLoader::getInstance(); // echo "<pre>"; print_r($objPluginLoader); die; // $objPluginLoader->registerPlugin(); }
protected function _initLoadPlugins() { $objPluginLoader = Engine_Plugins_PluginLoader::getInstance(); $objPluginLoader->registerPlugin(); }