On Jun 15, 8:11 am, Narendra Padala <[email protected]> wrote:
> Hi all I am new to cake php,
>
> I am created some themes like red, green blue etc.
>
> i have to use these themes in my appliaction.
>
> so i defined in my app controller like this
>
>     var $view = 'Theme';
>     var $theme = 'black'; // here i need global value.
>
> this value i have to set in the core .php
>
> like this i wrote
>
>         define('xxxx', 'blue');
>
> now i need use the 'xxxx' value to
>
>     var $theme = $'xxxx'  // here how can i use.
>
> Please any one can help me out to solove this problem

I would use bootstrap.php, not core.php. And, instead of define(), I'd
do:

Configure::write('xxx', 'blue');

In AppController, use Configure::read('xxx') to get the value.

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 [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

Reply via email to