try this:

if (in_array(2, $arr->getRawValue()))

On Fri, Dec 12, 2008 at 5:31 PM, Matias <mtoro...@gmail.com> wrote:
>
> It work!!. But now I have another problem:
> If I declare a variable in an action, for example :
>
> $this->arr = array(1,2,3,4);
>
> then in the template i used to do
>
> if(in_array(2, $arr))
>
>
> it didn't give any problems, but now it says
> Warning: in_array() [function.in-array]: Wrong datatype for second
> argument in ***/templates/showSuccess.php on line 79
>
>
> On 12 dic, 12:45, "Bernhard Schussek" <bschus...@gmail.com> wrote:
>> Hi Matias,
>>
>> On Fri, Dec 12, 2008 at 4:22 PM, Matias <mtoro...@gmail.com> wrote:
>> > I just found one solution, set escaping_strategy to 'off' in the
>> > settings.yml.
>>
>> >  escaping_strategy:      'off'
>>
>> This is a very insecure solution. You should follow Geoffrey's advice
>> and disable the escaping selectively instead.
>>
>> Bernhard
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to