I'm attempting to add a script to an index.ctp in CakePHP 1.3. I've
added 'inline' => false to the $html->script statement. The problem is
that the script gets added to $scripts_for_layout at the TOP. In
default.ctp, there is another script that must be BEFORE the one added
in index.ctp. (The order is important.) Is there anyway that I can get
the script added to the bottom of the $scripts_for_layout in this
case? Even better, is there any way to control the order of the
scripts in $scripts_for_layout?

If you're interested, I'm using the wonderful UI.layout plugin, and in
some cases, I need the east (right) pane closed depending on the page.
I have to initialize the plugin in default.ctp. Then, I have to add
the specific directive to close the pane when I open that page, in
this case index.ctp. If I try to close the pane before initializing
the plugin, of course it won't work.

I need to initialize the plugin in default.ctp because it's needed on
all pages. I only need to selectively close the east pane on a few
pages.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to