Testing the Yii Framework


First, download the Yii Framework to somewhere sensible. I prefer to use subversion to check out the code:

svn co http://yii.googlecode.com/svn/branches/1.0 /usr/share/php/Yii

This will take a few minutes. Once it’s done, you can use the Yii Command Runner (yiic) to set up your web application:

/usr/share/php/Yii/framework/yiic webapp /var/www/html/appname

If everything went well, you should be able to access your web app with:


You should see a screen like the following one:



Set up the config script to be able to connect to your database.


Uncomment the DB section, and add in your database connection details:


Leave a Reply

Your email address will not be published. Required fields are marked *