I meant to write $form->removeElement('begin'); but that makes no
difference to the result...
Bart McLeod schreef:
*testcode to reproduce error:*
setView($view);
$form->addElement(new ZendX_JQuery_Form_Element_DatePicker("begin",
array('label' => 'begin', 'value' => '10-03-2008')));
echo $fo
*testcode to reproduce error:*
setView($view);
$form->addElement(new ZendX_JQuery_Form_Element_DatePicker("begin",
array('label' => 'begin', 'value' => '10-03-2008')));
echo $form;
$element = $form->getElement('begin');
$decorator = $element->getDecorator('UiWidgetElement');
$element->setDecor
Hello Benjamin,
The problem is that I am NOT the one who is passing the NULL value. It
is done internally, somewhere where I can't find it. Otherwise, it would
have been very simple to solve.
I have tried preserving the original decorator and re-adding it, but
that does not work either. So i
Hello Bart,
the call signature for all jQuery helper mimics the dojo one:
$this->helper($id, $value, array $params=array(), array $attribs=array())
if you want to pass no value leave the parameter entry or put array() in it.
null leads to an error, this is desired behaviour.
regarding NULL and
It seems to be by design, if explicit null values are passed in, the
default value is of no use:
As and addition, I noticed that when putting
if(! is_array($attribs)){
var_dump($attribs);
//exit();
}
inside the function, is actually dumps NULL, while $at
As and addition, I noticed that when putting
if(! is_array($attribs)){
var_dump($attribs);
//exit();
}
inside the function, is actually dumps NULL, while $attribs should be
Array{}, because the default is array(). PHP 5.2.5 doesn't seem to
assing the default