Thiago...you probably mean $this->*Form*->input... -- Lep pozdrav, Tilen Majerle http://majerle.eu
2011/11/26 Thiago Belem <[email protected]> > Try something like this: > > $this->Html->input('field', array('div' => array('class' => > 'my-div-class'))) > > > -- > ***Thiago Belem* > Desenvolvedor > Rio de Janeiro - RJ - Brasil > > +55 (21) 8865.9250 > thiagobelem.net > [email protected] > > *Skype / gTalk **»* thiago.belem.web > *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* > Assando Sites*, curso de CakePHP *»* assando-sites.com.br > > > > 2011/11/26 cronet <[email protected]> > >> Hey, >> >> >> the default form error output is this: >> >> <div class="input text required error"> >> <label for="PostTitle">Title</label> >> <input id="PostTitle" class="form-error" type="text" value="" >> maxlength="150" name="data[Post][title]"> >> <div class="error-message">This field cannot be left blank</div> >> </div> >> >> I would like to modify the enclosing div with a new class: >> >> <div class="input text required error FORM-FIELD"> >> <label for="PostTitle">Title</label> >> <input id="PostTitle" class="form-error" type="text" value="" >> maxlength="150" name="data[Post][title]"> >> <div class="error-message">This field cannot be left blank</div> >> </div> >> >> In the docs is only the option for modify the div with the error >> message in it... >> >> Is there a way to achieve this? >> >> Regards, >> Cronet >> >> -- >> 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 >> [email protected] For more options, visit this group >> at http://groups.google.com/group/cake-php >> > > -- > 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 > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
