private function __construct() { \GF\Loader::registerNamespace('GF', dirname(__FILE__ . DIRECTORY_SEPARATOR)); \GF\Loader::registerAutoLoad(); $this->_config = \GF\Config::getInstance(); //if($this->_config->getConfigFolder() == null){ // $this->_config->setConfigFolder('../config'); //} }
private function __construct() { set_exception_handler(array($this, '_exceptionHandler')); \GF\Loader::registerNamespace('GF', dirname(__FILE__) . DIRECTORY_SEPARATOR); \GF\Loader::registerAutoLoad(); $this->_config = \GF\Config::getInstance(); //if config folder is not set, use defaultone if ($this->_config->getConfigFolder() == null) { $this->setConfigFolder('../config'); } }