I would like the class only for the error case...
On 26 Nov., 15:11, Thiago Belem <cont...@thiagobelem.net> wrote:
> Yep... You got me.
>
> Thanks,
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> +55 (21) 8865.9250
> thiagobelem.net
> cont...@thiagobelem.net
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
> Assando Sites*, curso de CakePHP *»* assando-sites.com.br
>
> 2011/11/26 Tilen Majerle <tilen.maje...@gmail.com>
>
>
>
>
>
>
>
> > Thiago...you probably mean $this->*Form*->input...
> > --
> > Lep pozdrav, Tilen Majerle
> >http://majerle.eu
>
> > 2011/11/26 Thiago Belem <cont...@thiagobelem.net>
>
> >> 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
> >> cont...@thiagobelem.net
>
> >> *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 <cro...@gmx.de>
>
> >>> 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 sitehttp://ask.cakephp.organd
> >>> 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 athttp://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 sitehttp://ask.cakephp.organd 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
> >> athttp://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 sitehttp://ask.cakephp.organd 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
> > athttp://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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment