public function config($key) { if ($this->yaconf) { return Yaconf::get($key); } else { list($name, $key) = explode('.', $key); if (isset($this->configItems[$name][$key])) { return $this->configItems[$name][$key]; } } return; }
public function getpzAction() { //注意:需要安装yaconf扩展,并且yaconf.directory=/tmp/yaconf 必须在php.ini里设置,不能动态加载 echo Yaconf::get("conf.zqf"); exit; }
public function has($key) { return Yaconf::has($key); }
/** * * @author: De-Wu Zeng <*****@*****.**> * * @param $key * * @return mixed */ public function get($key) { return \Yaconf::get($key); }