Thursday, November 3, 2011

Re: How about using real HTML templates for Form input fields?

> Those templates could be "theme" specific (like Twitter Bootstrap) and

IMHO only not-so-easy solvable problem with Twitter Bootstrap and cake
forms is - label wrapped around checkboxes, for both single-ones and
'multiple' (wrapped in unordered lists). Rest of it is easy, thanks to
'className' key in $helpers and custom aliased YourFormHelper (and
probably also YourHtmlHelper with either customized $_tags property or
using 'configFile' configuration setting and proper config file with
customized and/or added tags in it) where you can inject/set classes/
divs etc before call of parent class (FormHelper) methods.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: