Friday, January 30, 2009

$scripts_for_layout breaks in seperated header

hi-
in my app, i have sperated the header and footer as new elements
(header.ctp/footer.ctp). The default.ctp uses $this->element('header')
for example, to retrieve the header. I am doing this becuase i have
to change headers/footers from layout to layout (sometimes). Anyway,
by seperating the header $scripts_for_layout suddenly becomes broken:
Notice (8): Undefined variable: scripts_for_layout, leavine me with
the only option of inline css/js. Ugh.

is there a way to work around this? In the views i would like to call
specific javascripts or css, as some js/css is not pertinant to other
pages. Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: