Supporting multiple Yii Environments

I installed Yii while following the tutorials in my Webroot folder. I use Mac OS Lion. I also ran the sample application. Now I am starting a small mini project with one of my remote friends. He has created the dev repository with the webapp folder which includes the YiiRoot folder and MyApp (our small application using Yii) folder. I would like to keep this environment separate than my default Yii environment which I have setup in the WebRoot folder.

  • Is it possible to have two Yii environments enabled on my machine at the same time?

  • Assuming that I checked out the content of the repository to Documents/WebApp folder, what changes would I have to do run the application MyApp using the YiiRoot checked out in the WebApp folder.



you can load a different framework on index.php and/or use different configuration files.