扩展插件完善优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user