How does Symfony pass members set in an action to a template?
        Posted  
        
            by Martin Chatterton
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Martin Chatterton
        
        
        
        Published on 2010-04-26T10:08:57Z
        Indexed on 
            2010/04/26
            10:13 UTC
        
        
        Read the original article
        Hit count: 275
        
How does a member set inside an action...
$this->foo = 'bar';
...become a variable accessible from a template...
echo $foo; // bar
I would like to know how it is achieved at a framework level.
There is a lot of documentation on how to use Symfony, but I've not managed to find much about how it all fits together behind the scenes (class structure/inheritance etc).
Thanks in advance for your help!
© Stack Overflow or respective owner