...@googlegroups.com] De
la part de Joshua
Envoyé : jeudi 22 avril 2010 23:24
À : symfony users
Objet : [symfony-users] doSelect array result converted to ArrayDecorator in
template
symfony version 1.4.4
In the action class I'm doing
$this-var = ClassPeer::doSelect($c);
When I print_r($this-var
You shouldn't be unsetting in your templates. Symfony wraps data sent
to the template from the action in that sfOutputEscaperArrayDecorator
object as a security measure against all sorts of injection attacks.
You can still foreach through your array however and display that data...
Maybe if you
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
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 houseaddi...@gmail.com wrote:
symfony version 1.4.4
In the action