扩展示例

This commit is contained in:
2020-04-04 16:48:57 +08:00
parent 4e730d23fa
commit 755fa1c64c
6 changed files with 226 additions and 8 deletions

View File

@@ -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);