Bookcafe

Saturday, March 25, 2017

Yii2 Application In The Making (Using Gii on Yii2)

I am trying to develop Yii application using the latest Yii2 Framework using the same ways as application that i developed using Yii 1.1 Framework sometimes ago. Please refer HERE for background information.

I am using Gii to help me to generate codes for my Yii2 application

Gii is already enabled by default in Yii2 and to make sure its happens,  please check /web/index.php to verify.



Go this url http://my_site_FQDN/web/index.php?r=gii to start using the Gii




I wanted to use my existing MySql table to apply Gii, in this case as similar like before Alumnidata2

Click Model Generator. Fill out the Table Name as in this case alumnidata2 and the Model Class Alumnidata2 and then click Preview. Let the other fields at its default values