Create (Insert) Record

To insert the records in the database, following steps are there. We have named our Yii2 folder as create.

Step 1 Create Model file

Create a model file child.php in frontend/models folder.