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
d83d98d8
Commit
d83d98d8
authored
Jul 27, 2014
by
东方孤思子(Paris·QianSen)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
34893c9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
README.md
docs/guide-zh-CN/README.md
+3
-3
concept-aliases.md
docs/guide-zh-CN/concept-aliases.md
+1
-1
start-databases.md
docs/guide-zh-CN/start-databases.md
+10
-10
tutorial-core-validators.md
docs/guide-zh-CN/tutorial-core-validators.md
+1
-1
No files found.
docs/guide-zh-CN/README.md
View file @
d83d98d8
...
...
@@ -139,9 +139,9 @@ RESTful Web 服务
-----
*
**编撰中**
[
概述
](
test-overview.md
)
*
**
待定
中**
[
单元测试
](
test-unit.md
)
*
**
待定
中**
[
功能测试
](
test-functional.md
)
*
**
待定
中**
[
验收测试
](
test-acceptance.md
)
*
**
编撰
中**
[
单元测试
](
test-unit.md
)
*
**
编撰
中**
[
功能测试
](
test-functional.md
)
*
**
编撰
中**
[
验收测试
](
test-acceptance.md
)
*
**编撰中**
[
测试夹具
](
test-fixtures.md
)
...
...
docs/guide-zh-CN/concept-aliases.md
View file @
d83d98d8
...
...
@@ -86,7 +86,7 @@ $cache = new FileCache([
预定义的别名 <a name="predefined-aliases"></a>
------------------
Yii 预定义了一系列别名来简化常用路径和 URL的使用:
Yii 预定义了一系列别名来简化常用路径和 URL
的使用:
-
`@yii`
-
`BaseYii.php`
文件所在的目录(也被称为框架安装目录)
-
`@app`
- 当前运行的应用
[
[yii\base\Application::basePath|根路径(base path)
]
]
...
...
docs/guide-zh-CN/start-databases.md
View file @
d83d98d8
...
...
@@ -27,16 +27,16 @@ CREATE TABLE `country` (
`population`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
INSERT
INTO
`
C
ountry`
VALUES
(
'AU'
,
'Australia'
,
18886000
);
INSERT
INTO
`
C
ountry`
VALUES
(
'BR'
,
'Brazil'
,
170115000
);
INSERT
INTO
`
C
ountry`
VALUES
(
'CA'
,
'Canada'
,
1147000
);
INSERT
INTO
`
C
ountry`
VALUES
(
'CN'
,
'China'
,
1277558000
);
INSERT
INTO
`
C
ountry`
VALUES
(
'DE'
,
'Germany'
,
82164700
);
INSERT
INTO
`
C
ountry`
VALUES
(
'FR'
,
'France'
,
59225700
);
INSERT
INTO
`
C
ountry`
VALUES
(
'GB'
,
'United Kingdom'
,
59623400
);
INSERT
INTO
`
C
ountry`
VALUES
(
'IN'
,
'India'
,
1013662000
);
INSERT
INTO
`
C
ountry`
VALUES
(
'RU'
,
'Russia'
,
146934000
);
INSERT
INTO
`
C
ountry`
VALUES
(
'US'
,
'United States'
,
278357000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'AU'
,
'Australia'
,
18886000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'BR'
,
'Brazil'
,
170115000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'CA'
,
'Canada'
,
1147000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'CN'
,
'China'
,
1277558000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'DE'
,
'Germany'
,
82164700
);
INSERT
INTO
`
c
ountry`
VALUES
(
'FR'
,
'France'
,
59225700
);
INSERT
INTO
`
c
ountry`
VALUES
(
'GB'
,
'United Kingdom'
,
59623400
);
INSERT
INTO
`
c
ountry`
VALUES
(
'IN'
,
'India'
,
1013662000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'RU'
,
'Russia'
,
146934000
);
INSERT
INTO
`
c
ountry`
VALUES
(
'US'
,
'United States'
,
278357000
);
```
于是便有了一个名为
`yii2basic`
的数据库,在这个数据库中有一个包含三个字段的数据表
`country`
,表中有十行数据。
...
...
docs/guide-zh-CN/tutorial-core-validators.md
View file @
d83d98d8
...
...
@@ -121,7 +121,7 @@ public function rules()
```
php
function
foo
(
$model
,
$attribute
)
{
// ...
compute
$value ...
// ...
计算
$value ...
return
$value
;
}
```
...
...
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