Doing that however, negates all the protection that the
sfOutputEscaperArrayDecorator object gives you and is really not
recommended. In fact if you have to do that then you should rather
find another way. It will be more work to secure the output that
sfOutputEscaperArrayDecorator provides instead of just finding an
alternative method to do what you want.

On Fri, Apr 23, 2010 at 9:57 AM, Daniel Lohse
<[email protected]> wrote:
> What you are seeing is the automatic output escaping in action. Turn it off,
> look in the docs on how to deal with this or just do
> $sf_data->getRaw('varName');
>
> Cheers, Daniel
>
> Sent from my iPhone
>
> On Apr 23, 2010, at 12:21 AM, Joshua <[email protected]> wrote:
>
>> damnit. Restricted at every turn
>>
>> Tell you what, run this RE on all your project folders then eat your
>> hat
>>
>> find . -name "*Success.php" | xargs grep '*doSelect*' -sl
>>
>> On Apr 22, 5:31 pm, Jonathan Wage <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> The idea of a MVC is that you don't do any data retrieving or
>>> manipulation
>>> in your templates. You should do this in your controller and pass the
>>> value
>>> you want to your views.
>>>
>>> - Jon
>>>
>>>
>>>
>>> On Thu, Apr 22, 2010 at 5:24 PM, Joshua <[email protected]> wrote:
>>>
>>>> symfony version 1.4.4
>>>
>>>> In the action class I'm doing
>>>
>>>> $this->var = ClassPeer::doSelect($c);
>>>
>>>> When I print_r($this->var) it is an array but in the indexSuccess.php
>>>> template it is
>>>> sfOutputEscaperArrayDecorator Object
>>>
>>>> In the template when I try to
>>>> unset($var[$x]);
>>>
>>>> I get escape error
>>>> [22-Apr-2010 21:06:49] Cannot unset values.
>>>
>>>> WTF?
>>>
>>>> --
>>>> If you want to report a vulnerability issue on symfony, please send it
>>>> to
>>>> security at symfony-project.com
>>>
>>>> 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]<symfony-users%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>> --
>>> Jonathan H. Wage (+1 415 992 5468)
>>> Open Source Software Developer & Evangelist
>>> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>>>
>>> You should follow me on Twitter:http://www.twitter.com/jwage
>>>
>>> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
>>> training, consulting, application development, or business related
>>> questions
>>> at [email protected]
>>>
>>> --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> 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
>>> athttp://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> 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
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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