You could also have used a slot or something to give your template pages the
ability to add attributes to the body tag. However in this case I would as
Gareth suggested use jquery to register onload events.
On Tue, Nov 9, 2010 at 23:52, Gareth McCumskey wrote:
> And to answer your question, if y
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
cau
You don't need to use the body tag as
Using JQuery you can include your Javascript in your template and use JQuery
to do stuff onload for you.
On Wed, Nov 10, 2010 at 1:34 AM, Parijat Kalia wrote:
> Hey people,
>
> I am trying to have an onLoad event in one of my webpages. But as we know,
> the
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. O