SRCMS(轻响应)企业应急响应中心开发框架
This commit is contained in:
martinzhou2015
2015-07-28 19:00:39 +08:00
parent 0a95303932
commit e6ef253b86
13 changed files with 46 additions and 62 deletions

View File

@@ -90,8 +90,9 @@ class CategoryController extends BaseController
* @param [type] $id [description]
* @return [type] [description]
*/
public function delete($id)
public function delete()
{
$id = I('get.id',0,'intval');
$model = M('category');
//查询属于这个分类的文章
$posts = M('post')->where('cate_id='.$id)->select();