Summary
Even though we did not do a ton of actual coding in this chapter, we accomplished quite a lot. We created a new database table, which allowed us to see Yii AR in action. We used the Gii code generation tool to first create an AR class to wrap our tbl_project database table. We then wrote tests to try out this new class and got a lot of exposure to using these AR class types.
We then demonstrated how to use the Gii code generation tool to generate actual CRUD functionality in the Web application. With this amazing tool, we achieved most of application functionality that we outlined for this iteration. We made one small change to enforce the project name and description on form submission, which showcased the form validation functionality.
Finally, we introduced testing fixtures in Yii, and made some adjustments to our testing environment to take advantage of this feature.
In the next iteration, we will build on what we have learned here and dive more deeply into Active Record in Yii...