On Mon, 1 Jun 2009, Mark Smith wrote: > If I am writing some page specific javascript where should I put it? > > The way I see it I have 3 options: > > 1) Embed it in the page template (feels very hacky) > > 2) Stick it in a global .js and load it every time regardless. (could > cause problems and isn't really scalable) > > 3) Put it in its own .js file in the web folder and add it to the view > (again seems like it would be hard to manage, but feels slightly less > evil than the first 2 options) > > Are there other options I haven't considered?
You could use slots in your layout: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_slots -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
