On May 29, 2009, at 10:23 AM, Eno wrote:

>
> On Fri, 29 May 2009, belbek wrote:
>
>> is there a way to get the Request Object in validate/ .yml file in
>> symfony 1.0
>>
>> a need to change the required: option depending on incoming request
>
> You can put PHP code inside YAML files. The PHP code will be parsed  
> and
> executed before the YAML parser.

That's the wrong place to do what he's trying to do.  The best place  
is to add a validateAction() (where Action is whatever the action is  
called) method to the controller and have it clear the required error  
if the request condition is met.

>
> Maybe that helps?
>
>
>
> -- 
>
>
>
> >

--
Jacob Coby







--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to