Collecting user data via HTML forms is one of the major tasks in Web application development. Besides designing forms, developers need to populate the form with existing data or default values, validate user input, display appropriate error messages for invalid input, and save the input to persistent storage. Yii greatly simplifies this workflow with its MVC architecture.
The following steps are typically needed when dealing with forms in Yii:
In the next subsections, we describe each of these steps in detail.
Signup or Login in order to comment.