扩展插件完善优化

This commit is contained in:
2020-04-16 22:16:28 +08:00
parent 5439ccd8fb
commit ce9b63dda1
7 changed files with 48 additions and 29 deletions

View File

@@ -29,6 +29,10 @@ class Base extends BaseC {
if ($template == '') {
$template = str_replace(".", "@", strtolower($this->request->controller())) . "/" . $this->request->action();
}
if($this->request->param('addon')){
$this->tpl_config['view_depr'] = '/';
$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);