You cannot functions while declaring properties....so create constructor and there set value from method/function... Dne sreda, 18. januar 2012 je poĊĦiljatelj Abraham Boray < [email protected]> napisal: > 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 > [email protected] For more options, visit this group at http://groups.google.com/group/cake-php >
-- -- Lep pozdrav, Tilen Majerle http://majerle.eu -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
