decorator by providing a "style" option:
$form->getElement('myelement')->getDecorator('Errors')->setOption('style',
'font-color: red');
I believe all options that are not explicitly handled by the decorator get
converted to HTML attributes.
However I strongly recommend using CSS as the others have mentioned.
--
*Hector Virgen*
Sr. Web Developer
http://www.virgentech.com
On Wed, Dec 15, 2010 at 3:45 AM, sina miandashti <miandashti@gmail.com>wrote:
> wow I forgot about CSS
>
> thanks all :X
>
> On Wed, Dec 15, 2010 at 3:03 PM, Jeroen Keppens <jeroen.keppens@gmail.com
> >wrote:
>
> > if I'm not mistaken the resulting html contains a class like
> "form-errors".
> >
> >
> >
> http://framework.zend.com/manual/en/zend.form.standardDecorators.html#zend.form.standardDecorators.formErrors
> >
> > You can use CSS to change the color:
> >
> > .form-errors {
> > color: #ff0000;
> > }
> >
> > Jeroen
> >
> > On 15 Dec 2010, at 12:28, sina miandashti wrote:
> >
> > > i have a zend form object
> > >
> > > i want to modify the error decorator to make the error text fontcolor =
> > red
> > > !
> > >
> > > i search a lot cant find how to do this :(
> > >
> > > --
> > > ________________
> > > Sincerely
> > > Sina Miandashti
> > > MuSicBasE.ir & InvisionPower.ir Admin
> >
> >
>
>
> --
> ________________
> Sincerely
> Sina Miandashti
> MuSicBasE.ir & InvisionPower.ir Admin
>
没有评论:
发表评论