Yii配制文件如下config/main.php
// use gii begin
'modules'=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'aspphp',
'ipFilters'=>array('192.168.1.100'),
'newFileMode'=>0777,
'newDirMode'=>0777,
),
),
二:gii操作页面
http://192.168.1.100:8181/index.php?r=gii/model
Model Generator
This generator generates a model class for the specified database table.
…
…
Model Path *
application.models
This refers to the directory that the new model class file should be generated under. It should be specified in the form of a path alias, for example, application.models.
Code Template *
default (/home/zhangxu/web/yii/framework/gii/generators/model/templates/default)
我的“错误提示“如下:
---------------------------
There was some error when generating the code. Please check the following messages.
Generating code using template "/home/zhangxu/web/yii/framework/gii/generators/model/templates/default"…
generating models/Test.php
Unable to write the file '/home/zhangxu/web/yiiBlog/protected/models/Test.php'.
done!
--------------------------
第一次使用GII工具,英语功底差,不能正确翻译,理解不够
只是试着做,出了问题,搜索半天中文,没有解决,
看上边代码,“错误提示“,冒似我没有写的权限
造成这种结果有哪些原因,请指教