Question: yii2 how to use gii?
Answer: To use Gii to generate an Active Record class, select the "Model Generator" (by clicking the link on the Gii index page). Then fill out the form as follows: Table Name: country. Model Class: Country.