Hey, I asked this question to one of the symfony devs. Who know who you are
and thanks!!!
I figured I'll ask the question here and post his answer:
question: Is there a way to format $form['attribute']->renderLabel() in the
view to turn red if a validator error is returned for 'attribute'?
We can do this through some hacks, but we're hoping that there's a way
available through symfony, or an opportunity for the dev team here to code
something in the source code to make this happen.
answer: You can switch the class name via:
$form['attribute']->renderLabel(array(), array('class' =>
$form['attribute']->hasError() ? 'validation-failed' : 'validation-passed'))
Anyway, I just want to go on record here and say that out of all the PHP
frameworks out there, symfony's the best. I spent a few times just ready to
abandon symfony for another framework, and honestly:
Where other frameworks fail, Symfony succeeds.
I would totally recommend it for any PHP project. CodeIgniter comes 2nd, but
it really lacks the ORM features that allow for rapid development. I am
about to finish a two month long project and will whole-heartedly recommend
symfony.
Cheers,
Barce
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---