Saturday, October 20, 2012

Re: Using function config() fails to define PHP variables

Sorry, I didn't specify this earlier.  I'm trying to use the function described in the docs at:

config()

Can be used to load files from your application config-folder via include_once. Function checks for existence before include and returns boolean. Takes an optional number of arguments.

Example: config('some_file', 'myconfig');

Just seems odd that the variables are not visible outside of the "included" php module.  Yes, the variables are only necessary within the views..  I was just wondering why?


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate