I need the same variables in every view (with a form) and tried using the config() function to read the file from the Config folder. It is read in just fine, and I can generate output from the config file (e.g. debug($variable)). However, after the loading of the file, none of the variables are defined within the view. In other words, the $variable is not defined outside of the included file itself.
If I change the use of config() to be an include_once(APP. 'Config' . DS . 'form_input_params.php') everything works just fine. What am I missing here? Thanks in advance for any ideas, -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
