Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
101da99f
Commit
101da99f
authored
Sep 25, 2014
by
funson86
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update start-gii.md
update to 20140919 from English version
parent
a6aff81a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
start-gii.md
docs/guide-zh-CN/start-gii.md
+8
-1
No files found.
docs/guide-zh-CN/start-gii.md
View file @
101da99f
...
...
@@ -38,6 +38,13 @@ defined('YII_ENV') or define('YII_ENV', 'dev');
```
http://hostname/index.php?r=gii
```
> 提示:如果不是通过localhost而是通过IP地址访问Gii,出于安全考虑系统默认禁止,按照如下在配置文件的gii部分添加允许IP地址访问。
```
php
'gii'
=>
[
'class'
=>
'yii\gii\Module'
,
'allowedIPs'
=>
[
'127.0.0.1'
,
'::1'
,
'192.168.0.*'
,
'192.168.178.20'
]
// adjust this to your needs
],
```
![
Gii
](
images/start-gii.png
)
...
...
@@ -76,7 +83,7 @@ CRUD 代表增,查,改,删操作,这是绝大多数 Web 站点常用的
然后点击 “Preview” 按钮。你会看到下述将要生成的文件列表。
[
[NEED THE IMAGE HERE / 等待官方补充图片
]
]
![
CRUD 生成器预览
](
images/start-gii-crud-preview.png
)
如果你之前创建过
`controllers/CountryController.php`
和
`views/country/index.php`
文件(在指南的使用数据库小节),选中 “overwrite” 下的复选框覆写它们(之前的文件没能全部支持 CRUD)。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment