/**
  * [category_add description]
  * @return [type] [description]
  */
 public function category_add()
 {
     if (IS_POST) {
         $data = I('post.');
         Category::firstOrCreate($data);
         View::success('添加成功');
         die;
     }
     $this->smarty->assign('title', '添加栏目_ISisWeb中文网后台管理_ISirPHPFramework');
     $this->smarty->assign('topcate', Category::where('pid', '=', 0)->get()->toArray());
     $this->smarty->display('Admin/Category/add.html');
     // die();
     // $this->view = View::make('/Admin/Category/add')
     // 				->with('topcate',Category::where('pid','=',0)->get())
     // 				->with('title','添加栏目_ISirPHP Framework');
 }