/** * @todo: 文章标签 * @author Saki <*****@*****.**> * @date 2014-12-24 下午2:20:50 * @version V1.0 */ public function tags() { $model = new \Admin\Model\ArticleTypeModel(); $condition['status'] = 1; $type_list = $model->where($condition)->select(); $this->assign('type_list', $type_list); }
/** * @todo: 删除分类-只进行逻辑删除 status=0 * @author Saki <*****@*****.**> * @date 2014-12-12 下午5:54:04 * @version V1.0 */ public function delete() { $id = $_GET['id']; $model = new \Admin\Model\ArticleTypeModel(); $data = $model->deleteType($id); if ($data['errcode'] == 0) { $this->redirect('ArticleType/index'); } }