Wednesday, January 18, 2012

Read configuration variables from the controller, CakePHP V2

I'm trying to read some of the variable I put in the configuration file Core.php.
So I can have like class Variables that takes their values from the core Variable.

EG

   class QuestionsController extends AppController {    
   var $visite_status = Configure::read('visite_status');

}
But this isn't working in the controller, any ideas how can I do this ?

Thank you in advance. 

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: