public function edit($id = null) { $v = parent::edit($id); if (!$v->errors && !$this->reqIs("GET")) { return $v; } $v->id = $v->item['id']; return $v; }
public function json() { $this->list = product::join('user'); return parent::json(); }