Last active
March 3, 2016 07:56
-
-
Save pebriana/cfdfa8309db189161e88 to your computer and use it in GitHub Desktop.
gii model generate from commandline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # change path to your application's base path | |
| cd path/to/AppBasePath | |
| # show help information about Gii | |
| yii help gii | |
| # show help information about the model generator in Gii | |
| yii help gii/model | |
| # generate City model from city table | |
| yii gii/model --tableName=city --modelClass=City | |
| ./yii gii/model --db=dbz --tableName=scm.z --modelClass=SXMZZZ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment