Re: [symfony-devs] [Symfony2] flash message best practice

2010-10-22 Thread Lukas Kahwe Smith
On 22.10.2010, at 10:27, Lukas Kahwe Smith wrote: > > On 22.10.2010, at 10:21, Antoine Hérault wrote: > >> Hello, >> >> I think flash messages must be issued by the controller to inquire about the >> status of >> the process. However, it is the responsibility of the integrator to display >>

Re: [symfony-devs] [Symfony2] flash message best practice

2010-10-22 Thread Lukas Kahwe Smith
On 22.10.2010, at 10:21, Antoine Hérault wrote: > Hello, > > I think flash messages must be issued by the controller to inquire about the > status of > the process. However, it is the responsibility of the integrator to display a > message to > the user's eyes. Internationalization should al

Re: [symfony-devs] [Symfony2] flash message best practice

2010-10-22 Thread Jordi Boggiano
On 22.10.2010 10:21, Antoine Hérault wrote: > Maybe it would be interesting to create a management system based on a > flashes > registry (another configuration file). Thus, the controller simply pass > the key of the > wanted flash message. > > In the template side, a helper would display the m

Re: [symfony-devs] [Symfony2] flash message best practice

2010-10-22 Thread Antoine Hérault
Hello, I think flash messages must be issued by the controller to inquire about the status of the process. However, it is the responsibility of the integrator to display a message to the user's eyes. Internationalization should also be taken into account. Maybe it would be interesting to create a

[symfony-devs] [Symfony2] flash message best practice

2010-10-22 Thread Lukas Kahwe Smith
Hi, During the work on twigyfing DoctrineUserBundle we stumbled over another thing that made us wonder: http://github.com/liip/DoctrineUserBundle/blob/master/Resources/views/User/show_content.twig {% if _view.session.hasFlash('doctrine_user_user_create/success') %} {% trans 'The user has be