O'Reilly logo

Mastering Yii 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

Summary

We covered a lot of information in this chapter! We covered how to properly set up and configure Gii, the code generation tool for Yii2. We then covered how we can automatically create Active Record classes based upon our database schema using both the web and console interface for Gii in addition to many of the common methods and properties we can bind to our Active Record classes, such as validation rules, attribute labels, and behaviors. Next, we covered how to create basic models that do not depend upon our database and how to add scenarios to our models and Active Record classes. We finally covered how we can use the Gii tool to create HTML forms based upon our models and explored some of the functionality that comes with the ActiveForm ...

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