update

parent 34893c9e
...@@ -139,9 +139,9 @@ RESTful Web 服务 ...@@ -139,9 +139,9 @@ RESTful Web 服务
----- -----
* **编撰中** [概述](test-overview.md) * **编撰中** [概述](test-overview.md)
* **待定中** [单元测试](test-unit.md) * **编撰中** [单元测试](test-unit.md)
* **待定中** [功能测试](test-functional.md) * **编撰中** [功能测试](test-functional.md)
* **待定中** [验收测试](test-acceptance.md) * **编撰中** [验收测试](test-acceptance.md)
* **编撰中** [测试夹具](test-fixtures.md) * **编撰中** [测试夹具](test-fixtures.md)
......
...@@ -86,7 +86,7 @@ $cache = new FileCache([ ...@@ -86,7 +86,7 @@ $cache = new FileCache([
预定义的别名 <a name="predefined-aliases"></a> 预定义的别名 <a name="predefined-aliases"></a>
------------------ ------------------
Yii 预定义了一系列别名来简化常用路径和 URL的使用: Yii 预定义了一系列别名来简化常用路径和 URL 的使用:
- `@yii` - `BaseYii.php` 文件所在的目录(也被称为框架安装目录) - `@yii` - `BaseYii.php` 文件所在的目录(也被称为框架安装目录)
- `@app` - 当前运行的应用 [[yii\base\Application::basePath|根路径(base path)]] - `@app` - 当前运行的应用 [[yii\base\Application::basePath|根路径(base path)]]
......
...@@ -27,16 +27,16 @@ CREATE TABLE `country` ( ...@@ -27,16 +27,16 @@ CREATE TABLE `country` (
`population` INT(11) NOT NULL DEFAULT '0' `population` INT(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `Country` VALUES ('AU','Australia',18886000); INSERT INTO `country` VALUES ('AU','Australia',18886000);
INSERT INTO `Country` VALUES ('BR','Brazil',170115000); INSERT INTO `country` VALUES ('BR','Brazil',170115000);
INSERT INTO `Country` VALUES ('CA','Canada',1147000); INSERT INTO `country` VALUES ('CA','Canada',1147000);
INSERT INTO `Country` VALUES ('CN','China',1277558000); INSERT INTO `country` VALUES ('CN','China',1277558000);
INSERT INTO `Country` VALUES ('DE','Germany',82164700); INSERT INTO `country` VALUES ('DE','Germany',82164700);
INSERT INTO `Country` VALUES ('FR','France',59225700); INSERT INTO `country` VALUES ('FR','France',59225700);
INSERT INTO `Country` VALUES ('GB','United Kingdom',59623400); INSERT INTO `country` VALUES ('GB','United Kingdom',59623400);
INSERT INTO `Country` VALUES ('IN','India',1013662000); INSERT INTO `country` VALUES ('IN','India',1013662000);
INSERT INTO `Country` VALUES ('RU','Russia',146934000); INSERT INTO `country` VALUES ('RU','Russia',146934000);
INSERT INTO `Country` VALUES ('US','United States',278357000); INSERT INTO `country` VALUES ('US','United States',278357000);
``` ```
于是便有了一个名为 `yii2basic` 的数据库,在这个数据库中有一个包含三个字段的数据表 `country`,表中有十行数据。 于是便有了一个名为 `yii2basic` 的数据库,在这个数据库中有一个包含三个字段的数据表 `country`,表中有十行数据。
......
...@@ -121,7 +121,7 @@ public function rules() ...@@ -121,7 +121,7 @@ public function rules()
```php ```php
function foo($model, $attribute) { function foo($model, $attribute) {
// ... compute $value ... // ... 计算 $value ...
return $value; return $value;
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment