2010年12月16日星期四

[fw-mvc] Re: modify default error decorators

Hector Virgen wrote:
>
> I believe all options that are not explicitly handled by the decorator get
> converted to HTML attributes.
>
I can vouch for this as I rely on this frequently.


-----
--
Wil Moore III

Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/modify-default-error-decorators-tp3088813p3090998.html
Sent from the Zend MVC mailing list archive at Nabble.com.

[fw-gdata] Zend_GData_Docs support of pdf content-type

Hi all,

I download the latest version of gdata, and the pdf content type is not
support to upload. But, on the google documentation, the type is supported
(and other that gdata doesn't support).

So i found a Zend_Gdata_Docs that implement it, but i would like to know
when it will be implemented in the official release.
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-GData-Docs-support-of-pdf-content-type-tp3090977p3090977.html
Sent from the Zend gdata mailing list archive at Nabble.com.

2010年12月15日星期三

Re: [fw-mvc] modify default error decorators

Technically you should be able to add an inline style to the "errors"
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
>

Re: [fw-mvc] modify default error decorators

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

Re: [fw-mvc] modify default error decorators

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

Re: [fw-mvc] modify default error decorators

I suggest you to do that with CSS, you can easy come up with some selector
to pick error decorator generated html.

Regards,
Saša Stamenković


On Wed, Dec 15, 2010 at 12:28 PM, sina miandashti <miandashti@gmail.com>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
>

Re: [fw-mvc] modify default error decorators

Hi,

Why you do not use CSS for this? It should be way easier:

.errors {
color: red
}

Regards,

Fernando Morgenstern
contato@fernandomarcelo.com

Em 15/12/2010, às 09:28, sina miandashti escreveu:

> 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