Wecenter?????-???ò???????
???????????? ???????[ 2016/8/2 14:48:27 ] ???????????ù???
????core_config
??????÷??
????$admin_menu = (array)AWS_APP::config()->get('admin_menu');
???????
????get???????????в??????????????????load_config
????system/core/config.php#get
function get($config_id)
{
...
if (isset($this->config[$config_id]))
{
return $this->config[$config_id];
}
else
{
return $this->load_config($config_id);
}
}
????load_config???config?????????Id??????????????????????嵽?????
????system/core/config.php#load_config
function load_config($config_id)
{
if (substr($config_id?? -10) == '.extension' OR !file_exists(AWS_PATH . 'config/' . $config_id . '.php'))
{
throw new Zend_Exception('The configuration file config/' . $config_id . '.php does not exist.');
}
include_once(AWS_PATH . 'config/' . $config_id . '.php');
if (!is_array($config))
{
throw new Zend_Exception('Your config/' . $config_id . '.php file does not appear to contain a valid configuration array.');
}
$this->config[$config_id] = (object)$config;
return $this->config[$config_id];
}
????????core_config????????????д?????????????
????system/core/config.php#set
public function set($config_id?? $data)
{
if (!$data || ! is_array($data))
{
throw new Zend_Exception('config data type error');
}
$content = "<?php ";
foreach($data as $key => $val)
{
if (is_array($val))
{
$content .= "$config['{$key}'] = " . var_export($val?? true) . ";";;
}
else if (is_bool($val))
{
$content .= "$config['{$key}'] = " . ($val ? 'true' : 'false') . ";";
}
else
{
$content .= "$config['{$key}'] = '" . addcslashes($val?? "'") . "';";
}
$content .= " ";
}
$config_path = AWS_PATH . 'config/' . $config_id . '.php';
$fp = @fopen($config_path?? "w");
@chmod($config_path?? 0777);
$fwlen = @fwrite($fp?? $content);
@fclose($fp);
return $fwlen;
}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??????????????????ù????????ù?????????????????????????????з????????????????ù????е?SVN???ù????????????汾????????cmmi???ù??????ù?????????????ù???????????(2)???ù???????????(1)SCM??????ù???????????????ù??????????????????????е????ù??????????????ù??????ù????????????汾?????????????????ù???Nginx???ù??? - ???????DCMP??????etcd?????ù?????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????