I understand why you would want to write it in the app_controler (so
that all controllers might inherit from this).  The problem is, there
doesn't seem to be a way to declare variables outside of functions.
And, as you probably are finding out, when a application controller
inherits from the app_controller, the function declared in
app_controller (with the variable "foo", let's say) would be
overwritten.  Good question, but not sure how to make it work or
achieve "visibility".


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to