Re: Horde_View_Helper_Form->label
Jan Schneider <[email protected]>
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Sebastian Birnbach <[email protected]>: > I wrote a little test page to get to grips with Horde_Forms. I have files > moreview.php and viewtest/moretemplate.php, please see below. > > Problem is, I can't get the label() method to output 'for' tags as > described in > https://dev.horde.org/api/master/lib/View/class-Horde_View_Helper_Form.html#_label > : > > $this->label('post', 'title');// => <label for="post_title">Title</label> > > > I do, however, get the the 'for' tag when I specify it as an array of > options. > > What am I doing wrong? Nothing. Looks like this has never been implemented, so the docs and the code don't match. As already pointed out earlier in this thread, the form capabilities of Horde_View have never been used in production. > Another thing: Horde_View_Helper_Form->radioButton() takes $objectName and > $method as the first two parameters. I assume $objectName stands for the > group of radiobuttons and $method for the form the group is in. Shouldn't > that be usable for setting the id of the radioButton? I suggest you take the unit tests as code examples. -- Jan Schneider The Horde Project http://www.horde.org/ https://www.facebook.com/hordeproject -- dev mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]