Wednesday, April 28, 2010

Stuck again ...

Could someone help get me pointed in the right direction? 

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 


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

No comments: