/**
* 后台模板显示 调用内置的模板引擎显示方法,
* @access protected
* @param string $templateFile 指定要调用的模板文件
* @return void
*/
protected function adminDisplay($templateFile='') {
//获取菜单
$menuList = D('Admin/Menu')->getMenu($this->loginUserInfo,$this->infoModule['cutNav']['url'],$this->infoModule['cutNav']['complete']);
$this->assign('menuList',$menuList);
//复制当前URL
$this->assign('self',__SELF__);
//嵌套模板
$common = $this->fetch(APP_PATH.'Admin/View/common.html');
$tpl = $this->fetch($templateFile);
echo str_replace('<!--common-->', $tpl, $common);
}

实现了类似iframe的效果

05-11 15:51