功能模块构建
This commit is contained in:
51
app/controller/user/Content.php
Normal file
51
app/controller/user/Content.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?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\user;
|
||||
|
||||
class Content extends Base {
|
||||
|
||||
/**
|
||||
* @title 内容首页
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function index() {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 添加内容
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function add() {
|
||||
if ($this->request->isPost()) {
|
||||
# code...
|
||||
}else{
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 修改内容
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function add() {
|
||||
if ($this->request->isPost()) {
|
||||
# code...
|
||||
}else{
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 删除内容
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function del() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user