O'Reilly logo

Yii Project Blueprints by Charles R. Portwood II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating models with Gii

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:

Creating models with Gii

Tip

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required