Summary

In this chapter, we saw how to build a Model class from scratch and send data from view to controller using form, created using Yii2 ActiveForm widget. We also looked at the common useful methods to format data and sent files from the form.

In the next chapter, you will learn how to work with databases and save model data from view form to database.

Get Yii2 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.