You should not declare variable inside the template, unless the variable is for template stuffs (color, style, etc).
If it is data, you should declare it at least in your action. On Sun, Sep 27, 2009 at 9:32 AM, greg <saturn1...@hotmail.com> wrote: > > Hello i need to do > > <?php echo $sf_data->get('post', ESC_XSSSAFE) ?> > (i have download the plugin xssSafe etc...) > > But my problem is that : > post is a key and it works only if the key is created in the action > like > $this->post = $val; > > But me i need to create my variable in the template. > > templatesucess.php > > $post = 'lalal'; > <?php echo $sf_data->get('post', ESC_XSSSAFE) ?> //don't works !! > > So what can i do ?? > > Thank you > > > > > > > -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---