|
@@ -78,7 +78,18 @@ class Goods extends Backend
|
|
|
if($this->request->isGet()){
|
|
|
return $this->fetch();
|
|
|
}else{
|
|
|
- $data=$this->makeAdd();
|
|
|
+ $this->makeAdd();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public function edit($ids = null)
|
|
|
+ {
|
|
|
+ if($this->request->isGet()){
|
|
|
+ $row=$this->model->findOrFail($ids);
|
|
|
+ $this->assign('row',$row);
|
|
|
+ return $this->fetch('add');
|
|
|
+ }else{
|
|
|
+ $this->makeAdd();
|
|
|
}
|
|
|
}
|
|
|
|