function handleAddNewParam(NSubmitButton $button) { $values = $button->getForm()->getValues(); $this->getService('Widget')->update($values, $values['id_widget']); $this->getService('WidgetParam')->insert(array('id_widget' => $values['id_widget'])); // exit; $this->redirectAjax(); // dump($saved);exit; }
/** * Returns HTML name of control. * @return string */ public function getHtmlName() { $name = parent::getHtmlName(); return strpos($name, '[') === FALSE ? $name : $name . '[]'; }