1、更换编辑器
2、seo优化功能 3、表单的bug
This commit is contained in:
@@ -64,6 +64,7 @@ class Content extends Fornt{
|
||||
$teamplate = 'content/'.$this->modelInfo['name'].'/index';
|
||||
}
|
||||
$this->assign($data);
|
||||
$this->setSeo($cate['name']);
|
||||
return $this->fetch($teamplate);
|
||||
}
|
||||
|
||||
@@ -133,6 +134,10 @@ class Content extends Fornt{
|
||||
$teamplate = 'content/'.$this->modelInfo['name'].'/detail';
|
||||
}
|
||||
$this->assign($data);
|
||||
$title = isset($info['title']) ? $info['title'] : '';
|
||||
$tags = isset($info['tags']) ? $info['tags'] : '';
|
||||
$description = isset($info['description']) ? $info['description'] : '';
|
||||
$this->setSeo($title, $tags, $description);
|
||||
return $this->fetch($teamplate);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ class Index extends Fornt{
|
||||
|
||||
//网站首页
|
||||
public function index(){
|
||||
//设置SEO
|
||||
$this->setSeo(config('web_site_title'), config('web_site_keyword'), config('web_site_description'));
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user