Actually, you don't need to do this in code at all. You can specify the layout to use in the modules view.yml
----- Original Message ----- From: "Thomas Dedericks" <[email protected]> To: [email protected] Sent: Monday, February 23, 2009 10:56:51 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [symfony-users] Re: How to escape global site layout for an action? Hi, Just set the layout name to false in the action: $this->setLayout(false); Thomas Dedericks [email protected] GSM: +32 (0) 499 23 60 22 http://tequila-studio.com Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit : > Hello all, > > In one of the actions I have defined in controller, I do not want to > use the global template file layout.php. How config should I use in > this situation? > > Like I am creating a webapp and I have a link which opens in new > window. In this window, I don't want to display the site header and > footers. But they are included in the layout of the website. How can I > escape them? > > Thanks and Regards > Vikram > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
