예제 #1
0
 function newGoods()
 {
     $goods = array('id' => guid(), 'name' => E_POST('name'), 'intro' => E_POST('intro'), 'price' => E_POST('price'), 'pic' => E_POST('pic'));
     $model = new GoodsModel();
     $model->newGoods($goods);
     $this->out_json(true, "success");
 }