And to answer your question, if you look at the layout file it has a section
labelled $sf_content. Everytiem you load a page, symfony runs your action,
processes the view associated to that action and "catches" the HTML that
view produces then takes your layout and inserts the generated HTML it
caught, just like if you had done a normal include_once in a php file.

On Wed, Nov 10, 2010 at 1:34 AM, Parijat Kalia <kaliapari...@gmail.com>wrote:

> Hey people,
>
> I am trying to have an onLoad event in one of my webpages. But as we know,
> the body tag appears in the layout and not the template pages. So I am
> unable to understand how this can be done in symfony. If this is a little
> out of context, I am sorry, but it's typically straight forward. Offcourse I
> do not want that onload event on my body tag since it would load for all
> pages, but I want the onLoad only for one specific page.
>
> Thanks and regards
>
> Parijat
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to