I have a file I often include that has a bunch of arrays that I made with data for things like United States, names/abreviations/etc...
I am trying to use require_once to include this file in the app_controller.php and then access the data by declaring a "global" in local scope.
So far I have been unable to get this to work. My variables aren't accessible.
Has anyone else run into problems using globals?
I have used globals outside of the cakephp framework on this same webserver before.
If you have a suggestion as to a way to do this better I am all ears as well.
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- Global Variables John Zimmerman [gmail]
- Re: Global Variables John David Anderson (_psychic_)
- Re: Global Variables BoBB
- Re: Global Variables John Zimmerman [gmail]
