On Tue, Sep 9, 2008 at 2:37 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>wrote:
> -- Thomas VEQUAUD <[EMAIL PROTECTED]> wrote > (on Monday, 08 September 2008, 10:42 PM +0200): > > I'm trying to convert all my forms into Zend_Form objects: Zend_Form > seems > > really powerful! But, for once, the Zend documentation is really poor > about the > > subject and there are not enough examples and they're so so simple that I > > cannot get information I need to do what I want : > > First off, please go to http://devzone.zend.com/ -- I've written > articles on Form decorators and View Helpers, both of which will help a > lot in understanding Zend_Form. > Okay, I didn't know this part of the website: I bookmark the link... > Next, go to http://framework.zend.com/webinars, and look for my > Zend_Form webinar under the Zend Framework webinars listed there. While > the webinar recording failed, you can still download slides from there. My bookmarks are growing again! > > > > > http://thomas.vequaud.free.fr/download/05%20-%20Register%20info%20perso.png > > > > Actually, I don't find how to: > > - insert an icon in a legend HTML tag (<legend><img alt="" > src="<?=IMG_DIR?>/ > > icons/vcard_edit.png"/>Informations personnelles</legend>) ; > > This is not possible with any released standard decorators. It will be > possible in 1.6.1; until then, you will need to create your own fieldset > decorator and/or view helper. See the tutorials on DevZone for more > information. > Bad news for me =( > > - insert text after a checkbox input (<input type="checkbox">Some > text</input>) > > First off, the above is invalid markup. Second, you can specify the > location of the label using the 'placement' attribute, or, if using > MultiCheckbox, using the labelPlacement attribute. > Nice! > > - have a good interpretation of accents ; > > Not sure what you mean here. If you mean ensuring that the character set > is correct, this is something you will have to do within your php.ini > settings and translation files. It was so simple, why I didn't think about that? You rock. > > > - organize the various fieldsets to the right, left, top, etc. > Use display groups or sub forms for this. Actually, I already use display groups. Like labels, I guess I have to use the "placement" attribute... > > The final result is: > http://thomas.vequaud.free.fr/download/inscription.png > > The controller code is available here : > http://thomas.vequaud.free.fr/download/ > > RegisterController.txt > > > > Please give me advice because I've felt unproductive for the last 2 days. > > If there's any chance you'll be at ZendCon, I'm giving a session on > Zend_Form. ;) I'm in Vermont but my flight is scheduled for next monday and I live in France (Paris) or give me a job in California! ;) Thank you for the links, I can go back to work!
