Ejemplo n.º 1
0
 public function edit()
 {
     if (IS_POST) {
         if ($this->db->edit()) {
             View::success('操作成功', 'index');
         } else {
             View::error($this->db->getError());
         }
     } else {
         //分配品牌分类
         $cate = new \Admin\Model\ShopCate();
         $cateData = $cate->getAll();
         $field = $this->db->getOne();
         View::with('field', $field)->with('cateData', $cateData)->make();
     }
 }
Ejemplo n.º 2
0
 public function goods_delete()
 {
     //商品分类
     $cate = new \Admin\Model\ShopCate();
     $cateData = $cate->getAll();
     View::with('cateData', $cateData);
     //列表信息
     $data = $this->db->getDelAll();
     View::with('data', $data)->make();
 }