Now that our database has been created, we can create models for our database table. To create our models, we are going to use Gii, Yii's built-in code generator.
Open up your web browser and navigate to
http://localhost/gii (in this book, we will always use
localhost as our working hostname for our working project. If you are using a different hostname, replace
localhost with your own). Once loaded, you should see the Yii Code Generator, as shown in the following screenshot:
If you aren't able to access Gii, verify that your web server has rewriting enabled. Information about how to properly configure your web server for ...