功能模块构建
This commit is contained in:
57
app/controller/front/Content.php
Normal file
57
app/controller/front/Content.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\front;
|
||||
|
||||
use \app\model\Category;
|
||||
use \app\model\Model;
|
||||
use \app\model\Content as ContentModel;
|
||||
|
||||
class Content extends Base {
|
||||
|
||||
/**
|
||||
* @title 内容频道页
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function index() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 内容列表
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function lists() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 内容专题
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function topic() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 内容搜索
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function search() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 内容详情
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function detail() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user