By now, you should be comfortable with creating projects from scratch. To provide us with a common starting ground, a skeleton project has been included with the project resources for this chapter. Included with this skeleton project are the necessary migrations, data files, controllers, and views to get us started. Also included is the login system that we'll use for authentication throughout this chapter.
We'll start by copying the skeleton project included with the chapter resources to our web server and configure it so that it responds to chapter4.example.com
as outlined in the beginning of the chapter, and then follow the next steps to make sure everything is set up:
Since a skeleton project was provided, begin by adjusting the path to Yii framework in
index.php
to point to your Yii installation path. At this point, you'll also want to adjust the permissions on theassets
andprotected/runtime
folders.Next, create the MySQL user and database table that our application...