php - Yii model generation -
you know using gii tool can generate models , view controllers, so, question : possible generate model without using gii tool, mean, doing through php code calling method giving required parameters , on?
if want create model called company, create file named company.php in models folder , add together following
namespace app\models; utilize yii\db\activerecord; class company extends activerecord { // add together functions , properties here }
n.b. : latest version of yii, ie yii 2.0
php yii gii
No comments:
Post a Comment