Пример #1
0
 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;
 }
Пример #2
0
	/**
	 * Returns HTML name of control.
	 * @return string
	 */
	public function getHtmlName()
	{
		$name = parent::getHtmlName();
		return strpos($name, '[') === FALSE ? $name : $name . '[]';
	}