Sir why it will not work "constant" variable declared in core.php file, for
themes, why i am going for Configure::write('xxx', 'blue');  ,
Configure::read('xxx')  and bootstrap.php,   is there any reason to go for
this.  Let me know?

On Tue, Jun 15, 2010 at 11:33 PM, cricket <zijn.digi...@gmail.com> wrote:

> On Jun 15, 8:11 am, Narendra Padala <crazycake...@gmail.com> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to