Yii 1 gii console
в консоли
F:\OpenServer\domains\yii\protected\yiic shell
module newModule
exit - указыавем модуль в конфиге
F:\OpenServer\domains\yii\protected\yiic shell
model newModule.models.User2 tbl_user
crud admin.models.User2
-------------------------------------------------------------------------------------------
des@DESKTOP-9BLCHD7 F:\OpenServer\domains\yii
$ F:\OpenServer\domains\yii\protected\yiic shell
Yii Interactive Tool v1.1 (based on Yii v1.1.17)
Please type 'help' for help. Type 'exit' to quit.
>> crud newModule.models.User2
generate User2Controller.php
unchanged User2Test.php
mkdir F:/OpenServer/domains/yii/protected/modules/newModule/views/user2
generate create.php
generate update.php
generate index.php
generate view.php
generate admin.php
generate _form.php
generate _view.php
generate _search.php
Crud 'user2' has been successfully created. You may access it via:
http://hostname/path/to/index.php?r=newModule/user2
F:\OpenServer\domains\yii\protected\yiic shell
module newModule
exit - указыавем модуль в конфиге
F:\OpenServer\domains\yii\protected\yiic shell
model newModule.models.User2 tbl_user
crud admin.models.User2
-------------------------------------------------------------------------------------------
des@DESKTOP-9BLCHD7 F:\OpenServer\domains\yii
$ F:\OpenServer\domains\yii\protected\yiic shell
Yii Interactive Tool v1.1 (based on Yii v1.1.17)
Please type 'help' for help. Type 'exit' to quit.
>> crud newModule.models.User2
generate User2Controller.php
unchanged User2Test.php
mkdir F:/OpenServer/domains/yii/protected/modules/newModule/views/user2
generate create.php
generate update.php
generate index.php
generate view.php
generate admin.php
generate _form.php
generate _view.php
generate _search.php
Crud 'user2' has been successfully created. You may access it via:
http://hostname/path/to/index.php?r=newModule/user2
Комментарии
Отправить комментарий