I want to be able to set a variable in any one of my controllers/actions that is accessible
by the default.ctp just like you would do for $page_title / $title_for_layout.
I want to use it mainly for javascript so I would like to set the variable in the controller/action
and the appropriate script will execute in the default.ctp when the view is rendered, either that
or I could store the script in an element and have the appropriate element rendered in the default ???
Anywho, I've been digging through the book and I'm not quite sure where I should be looking.
Components? Bootstrapping? Heck if I know 8-)
Thanks,
- Ed
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:
Post a Comment