Re: Global Variables and Arrays

2006-04-12 Thread wassimk
Thanks for the replies Mika and Jose. They helped out and everything is working great now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

Re: Global Variables and Arrays

2006-04-09 Thread Mika
Instead of core.php try bootstrap.php in your app/config dir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Global Variables and Arrays

2006-04-09 Thread Jose Cedeno
There are several files in which you could put variables to be accessed in other files:app_model.php -> in your model variable is accessibleapp_controller.php -> in your controllers variable is accessible core.php -> anywhere accessibleJoseOn 4/8/06, wassimk <[EMAIL PROTECTED]> wrote: Hello Everyo

Global Variables and Arrays

2006-04-08 Thread wassimk
Hello Everyone, Is there a way to register an array as global using Cake? Kind of like application wide settings array that I can load from a database. Something like $settings = array(); $this->register->settings($settings) Then you can access $this->settings anywhere? --~--~-~--~--