What is the best way in CakePHP to have multiple database configuration that is going to be used based on environment?
Say I have a staging, prod and dev server.
Thank you,
Tee
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set it in your constructor.
This will basically switch your configuration based on where you are.