This post is here to remind me how to create a Web application using the Yii framework. It will be updated from time to time. This is assuming the yii framework is inside WebRoot
Here is how to create a new webapp named “sampleApp”.
Open your command prompt or Terminal
cd WebRoot
php YiiRoot/framework/yiic.php webapp sampleApp
configure the config files located at:
sampleApp/protected/config/main.php
sampleApp/protected/config/test.php
Now edit test.php and override your test database connection by entering info into the ‘db’ array item.