What do you say we both just walk away and forget this ever happened? 8-)
- Ed
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.On Thu, Apr 29, 2010 at 2:33 AM, Andrei Mita <andrei.mita@gmail.com> wrote:
Maybe I didn't get it right, but if you need a var globally available (controllers, views, layouts) you could use $session. Easy to set and read everywhere.
Andrei
On Thu, Apr 29, 2010 at 8:47 AM, Ed Propsner <crotchfrog@gmail.com> wrote:
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.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 accessibleby 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/actionand the appropriate script will execute in the default.ctp when the view is rendered, either thator 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
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
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