Hi Rick,
Thanks for reply
I have done it this way
Declaring Global Variable: Configure::write('var_name','var_value');
Reading Global Variable: Configure::read('var_name');
Regards
Anand
On Jun 19, 5:54 pm, Rick <[email protected]> wrote:
> You can write a new config value or you can define a variable or
> constant in bootstrap.php.
>
> Rick
>
> On Jun 19, 8:42 am, Anand <[email protected]> wrote:
>
> > Hello All,
>
> > How to define a global variable in CakePHP which i can use anywhere in
> > the application.
>
> > Please provide a code sample.
>
> > Waiting for reply....
>
> > Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---