Ejemplo n.º 1
0
 public function getForm($params = [])
 {
     $formdata = $this->formdata ?: $this->getData();
     $force = $this->force_form_data_to_var ? $formdata : [];
     $data = array_merge(['formdata' => $formdata, 'error' => $this->errors, 'action' => $this->action, 'success' => ($msgs = $this->controller->flash->get($this->getName() . 'success')) ? implode('', $msgs) : false, 'avisos' => ($msgs = $this->controller->flash->get('avisos')) ? implode('', $msgs) : false], $this->messages, $params, $force);
     return $this->controller->render($this->view, $data, false);
 }