2008年9月1日星期一

Re: [fw-mvc] Custom Form Decorator

-- Benjamin.Gonzales <iadvmc@yahoo.com> wrote
(on Monday, 01 September 2008, 08:41 AM -0700):
> I send you as the parameter to the method setTitle?
>
>
> if I do it this way does not work
> $element->addDecorator(new My_Form_Decorator_separator(),
> array('title','test'));

That should be array('title' => 'test') -- in other words, make sure you
pass an *associative* array.

> I send you as the parameter to the method setTitle?

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

没有评论: