I've made a CakePHP application and would like to integrate the environments concept. So my app should check the current domain name and then automatically determine if the environment is...
1. Development: http://development.bellewaerdefun.be
2. Staging: http://staging.bellewaerdefun.be
3. Production: http://bellewaerdefun.be
After doing that, every environment should have it's own variables set. That's perfect to make a database connection without changing the variables when the development file is copied to staging and/or production.
So I decided to look for an existing environment plugin and I found this one:
I manually copied and installed the needed folder and files, enabled the plugin in bootstrap.php and made a configuration file of every environment.
After doing all of that, I thought my application would now automatically check the environment, but guess what: it doesn't! It keeps returning the default "development" environment. That's what happens in the Environment class (Plugin > Environments > Lib > Environment.php):
Is there anyone who has the same problem as I have with this plugin? Or anyone who has a good solution to make my environments work?
Thanks a lot!
CakePHP version = 2.7.3
PHP version = 5.3.8
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 unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
|Free forum by Nabble||Edit this page|