2009年2月4日星期三

Re: [fw-mvc] Zend_Dojo_Form_Element_DateTextBox

-- Ed Lazor <edlazor@internetarchitects.biz> wrote
(on Wednesday, 04 February 2009, 03:54 PM -0800):
> Any idea why the DateTextBox only works when I add line 4?
>
> 1 $holiday = new Zend_Dojo_Form_Element_DateTextBox("holiday");
> 2 $holiday
> 3 ->setLabel('Holiday:')
> 4 ->setAttribs(array("dojoType"=>"dijit.form.DateTextBox"));
> 5
> 6 $this->addElements(array($holiday));

No ideas whatsoever; I've used it fine without setting that attribute.

How are you configuring your view object and the dojo view helper?

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: