Lukas Kahwe Smith wrote: > Hi, > > 1) I have an action that calls getPresentationFor(). The main action is > supposed to return JSON and so I use return $this->renderText() in the > end. Obviously its not supposed to be using a layout, this all works > fine until I call getPresentationFor(). Suddenly I get a layout even if > I explicitly call setLayout(false) in either the originating action or > in the action I call via getPresentationFor().
I discovered that its not the layout that is the problem. Its that suddenly I get a few additional javascript and stylesheets attached. No clue why. They certainly do not get added in the code and the getPresentationFor() call is being made on the same module. > 2) My second question is how I can disable any escaping strategy from > inside an action. I have some actions that just generate content that is > to be inserted into a database and that are called via > getPresentationFor() and I want to make sure that these methods to not > escape anything in the templates. I should clarify here that I really need to set this inside the action code and not in a config file, since I am also using setTemplate(), which would require adding a config setting for every possible template, which is not exactly ideal. regards, Lukas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
