-- 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. 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. > 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. > - 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. > - 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. > - organize the various fieldsets to the right, left, top, etc. Use display groups or sub forms for this. > 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. ;) -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
