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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e177e3be
Commit
e177e3be
authored
Sep 26, 2014
by
东方孤思子(Paris·QianSen)
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25 from funson86/patch-2
OK,那我merge先,不过我已经把图片放进来了,这个库本来也不是给人看的,应该看官方库,那边的才会更准确一些。 yii2-chinesization/yii2的不需要放图片,地址也最好别放绝对路径,因为文档后期是通过官方开发的apidoc软件渲染,而不是通过GitHub观看的。
parents
688e61a4
6f4cfaa0
Show 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 @
e177e3be
...
...
@@ -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'
]
// 根据你自己的需要调整
],
```
![
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