扩展示例
This commit is contained in:
@@ -122,6 +122,9 @@ class Base {
|
||||
}
|
||||
|
||||
protected function fetch($template = '') {
|
||||
if($this->request->param('addon')){
|
||||
$this->tpl_config['view_dir_name'] = 'addons' . DIRECTORY_SEPARATOR . $this->request->param('addon') . DIRECTORY_SEPARATOR . 'view';
|
||||
}
|
||||
View::config($this->tpl_config);
|
||||
View::assign($this->data);
|
||||
return View::fetch($template);
|
||||
|
||||
Reference in New Issue
Block a user