The flash variable is now attached to the user. Use $sf_user -> getFlash() -> has('blah');
They did that because it interacts with the user anyways (storing stuff in session), so now it explicitly belongs to the user. If you need to fix hundreds of templates, you can just listen to the filterTemplates event and add the flash variable back in. Daniel On Mar 1, 10:14 am, Darren884 <darren...@gmail.com> wrote: > In my template I put the following: > <?php if ($sf_flash->has('status')): ?> > <?php echo $sf_flash->get('status') ?> > <?php endif; ?> > > Now I get: > > Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/ > symfony/apps/frontend/modules/customers/templates/loginSuccess.php on > line 2 > > Fatal error: Call to a member function has() on a non-object in /var/ > www/vhosts/blackhawk.biz/symfony/apps/frontend/modules/customers/ > templates/loginSuccess.php on line 2 > > Why the hell would they deprecate this? -- 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 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