如何在文件类别中找到储存名称。 这是我努力做到的:
public function setTitle($title) {
// Append store name if small title
if(strlen($title) < 30){
$this->title = $title . - . $this->config->get("store_name");
} else {
$this->title = $title;
}
}
Although the $this
is referring to the document class. How to I get the config?
采用开放式1.5.2.1的最新版本
当检查<代码>index.php文档时,看汇装如何
// Registry
$registry = new Registry();
// Loader
$loader = new Loader($registry);
$registry->set( load , $loader);
// Config
$config = new Config();
$registry->set( config , $config);