예제 #1
0
 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;
 }
예제 #2
0
/**
 * 获取配置
 * @param string $cfgName
 */
function C($cfgName)
{
    return Core\Configer::get($cfgName);
}
예제 #3
0
파일: L.php 프로젝트: seepre/api.seepre.com
 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);
 }