插件,视图渲染bug

This commit is contained in:
2017-08-28 09:59:24 +08:00
parent 9deab68359
commit f963c2a373
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class Devteam extends Addons{
$config = $this->getConfig(); $config = $this->getConfig();
$this->assign('addons_config', $config); $this->assign('addons_config', $config);
if($config['display']){ if($config['display']){
$this->template('widget'); echo $this->fetch('widget');
} }
} }
} }

View File

@@ -48,7 +48,7 @@ class Sitestat extends Addons{
$info['category'] = db('Category')->count(); $info['category'] = db('Category')->count();
$info['model'] = db('Model')->count(); $info['model'] = db('Model')->count();
$this->assign('info',$info); $this->assign('info',$info);
$this->template('index/info'); echo $this->fetch('index/info');
} }
} }
} }

View File

@@ -71,7 +71,7 @@ class Systeminfo extends Addons {
$this->assign('addons_config', $config); $this->assign('addons_config', $config);
if ($config['display']) { if ($config['display']) {
$this->template('widget'); echo $this->fetch('widget');
} }
} }
} }