public function loadconfigAction($pass = '') { Core\Configer::resetConf(); $config_file = Yaf_Registry::get('config')->get('application.config'); $configM = Yaf_Registry::get('config')->get('application.configM'); if ($configM == 'Memcache' || $configM == 'Redis') { $mHost = Yaf_Registry::get('config')->get('application.mhost'); $mPort = Yaf_Registry::get('config')->get('application.mport'); } else { $mHost = NULL; $mPort = NULL; $configM = 'Yac'; } $re = FastFramework_L::initConfig($config_file, $configM, $mHost, $mPort); var_dump($re); return FALSE; }
/** * 获取配置 * @param string $cfgName */ function C($cfgName) { return Core\Configer::get($cfgName); }
public static function initConfig($configFile, $configerM = 'Yac', $mHost = '127.0.0.1', $mPort = 11211) { Core\Configer::init($configerM, $mHost, $mPort); return Core\Configer::parserConf($configFile); }