Hi, you could use another action than index to set your message, then redirect to index :
secure_action: needCredentials -> in the login controller : public function executeNeedCredentials() { $this->setFlash('message', 'You have to login to access this area'); $this->redirect('login/index'); } -> in the login/index view : <?php if ($sf_flash->has('message')) echo $sf_flash->get('message') ?> Don't know if this is the best way to do it, but it should work. Thomas -- http://tequila-studio.com/ Le jeudi 03 avril 2008 à 10:16 -0300, Bruno Reis a écrit : > Hi, > > when a user does not have acess he is redirected as configured in > settings.yml: > > all: > login_module: login > login_action: index > secure_module: login > secure_action: index > > it is working fine. But, how do I show a message to the user on the > login telling him that he is not logged or that he does not have the > proper credentials? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---