Form helper 'descr' implemented (was Re: [Solar-talk] Another form question)

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Dec 4 04:17:33 CST 2007


On Dec 4, 2007 1:50 AM, Oscar wrote:
> Not sure if I'm quite getting how to specify the descr_elem, should I be
> doing something like:
>
> echo $this->form($this->commentForm, array('descr_elem' => 'dt'));
>
> where $this->commentForm is the Form object ?

hey,

"echo $this->form($form_object)" is a shortcut for "echo
$this->form()->auto($form_object)->fetch()".

to have more than the shortcut offers, you have to use the "long" version:

    echo $this->form(array('descr_elem' =>
'dt'))->auto($this->commentForm)->fetch();

-- rodrigo


More information about the Solar-talk mailing list