Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #277

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guide-zh-CN/db-query-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ $query->groupBy('id, status');

> Note: 当 `GROUP BY` 语句包含一些 DB 表达式的时候,你应该使用数组的格式。

你可以调用 [[yii\db\Query::addOrderBy()|addOrderBy()]] 来为 `GROUP BY`
你可以调用 [[yii\db\Query::addGroupBy()|addGroupBy()]] 来为 `GROUP BY`
子句添加额外的字段。例如,

```php
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-zh-CN/structure-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ yii asset assets.php config/assets-prod.php
在这种情况下,把所有的资源包压缩到一个文件毫无意义,“前端”不会用到“后端”的资源文件,
当请求“前端”页面时,“后端”的资源文件也会被发送过来,浪费网络带宽。

为了解决这个问题,可以吧资源包分成若干组,每个组里面有若干个资源包。
为了解决这个问题,可以把资源包分成若干组,每个组里面有若干个资源包。
下面的配置展示了如何对资源包分组:

```php
Expand Down