/**
  * Set the form input
  * @param array $input
  */
 public function setInput(array $input, $id = null)
 {
     if ($id) {
         $this->model->find($id)->setInput($input);
     } else {
         $this->model->setInput($input);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Set the form input
  * @param array $input
  */
 public function setInput(array $input)
 {
     $this->model->setInput($input);
     return $this;
 }