Skip to content

Commit 4394d79

Browse files
committed
update
1 parent 3bfa828 commit 4394d79

21 files changed

+83
-83
lines changed

source/cli/cli_library.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ table()
215215
.. code-block:: none
216216
217217
+----+--------------------------+---------------------+--------+
218-
| ID | 标题 | 更新于 | 活动 |
218+
| ID | Title | Updated At | Active |
219219
+----+--------------------------+---------------------+--------+
220-
| 7 | 一个很棒的标题 | 2017-11-16 10:35:02 | 1 |
221-
| 8 | 另一个很棒的标题 | 2017-11-16 13:46:54 | 0 |
220+
| 7 | A great item title | 2017-11-15 10:35:02 | 1 |
221+
| 8 | Another great item title | 2017-11-16 13:46:54 | 0 |
222222
+----+--------------------------+---------------------+--------+
223223
224224
wait()

source/database/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ DSN
126126
**DBDriver** 数据库驱动名称。驱动名称区分大小写。
127127
你可以设置完全限定的类名以使用自定义驱动。
128128
支持的驱动:``MySQLi``、``Postgre``、``SQLite3``、``SQLSRV`` 和 ``OCI8``。
129-
**DBPrefix** 可选的表前缀,在运行时会添加到表名中:doc:`查询构造器 <query_builder>` 查询。这允许多个 CodeIgniter 安装共享一个数据库。
129+
**DBPrefix** 可选的表前缀,在运行时会添加到表名中 :doc:`查询构造器 <query_builder>` 查询。这允许多个 CodeIgniter 安装共享一个数据库。
130130
**pConnect** true/false (布尔值)- 是否使用持久连接。
131131
**DBDebug** true/false (布尔值)- 数据库错误发生时是否抛出异常。
132132
**charset** 与数据库通信使用的字符集。

source/database/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CodeIgniter 带有一个功能齐全且非常快速的抽象数据库类,它支
1212
连接数据库 <connecting>
1313
运行查询 <queries>
1414
生成查询结果 <results>
15-
查询辅助函数 <helpers>
15+
查询辅助方法 <helpers>
1616
查询构建器类 <query_builder>
1717
事务 <transactions>
1818
获取元数据 <metadata>

source/database/queries.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ $db->protectIdentifiers()
8484

8585
.. literalinclude:: queries/007.php
8686

87-
.. important:: 尽管查询构建器会尽最大努力适当引用你提供给它的任何字段和表格名称。请注意,它并不是设计用于任意用户输入。不要向它输入未经 sanitize 的用户数据
87+
.. important:: 尽管查询构建器会尽力正确引用你提供的任何字段和表名,但请注意它并不适用于任意用户输入。请勿将未经过处理的用户数据提供给它
8888

8989
如果在数据库配置文件中指定了前缀,此函数也会将 **表前缀** 添加到表格名,以启用前缀,请通过第二个参数设置 ``true`` (布尔值):
9090

source/dbmgmt/forge.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ $forge->modifyColumn()
302302
重命名表
303303
================
304304

305-
执行 TABLE 重命名
305+
执行 TABLE RENAME
306306

307307
.. literalinclude:: forge/021.php
308308

source/dbmgmt/migration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
迁移是一种以结构化和有序的方式修改数据库的便捷方法。你可以手工编辑 SQL 片段,但这样你就需要告知其他开发者他们需要运行这些片段。你也需要在下次部署到生产环境时跟踪哪些更改需要运行。
66

7-
数据库表 **migrations** 用于跟踪已经运行的迁移,因此你只需确保你的迁移文件已经准备好,并运行 ``spark migrate`` 命令将数据库更新到最新状态。你还可以使用 ``spark migrate --all`` 命令来包括所有命名空间的迁移。
7+
数据库表 **迁移** 用于跟踪已经运行的迁移,因此你只需确保你的迁移文件已经准备好,并运行 ``spark migrate`` 命令将数据库更新到最新状态。你还可以使用 ``spark migrate --all`` 命令来包括所有命名空间的迁移。
88

99
.. contents::
1010
:local:

source/extending/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
为 CodeIgniter 做贡献
33
###########################
44

5-
CodeIgniter 是一个社区驱动的项目,接受来自社区的代码和文档贡献。这些贡献是以 Issues 或 `Pull Requests <https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests>`_ 的形式在 GitHub 上的 `CodeIgniter4 仓库 <https://github.com/codeigniter4/CodeIgniter4>`_ 提出的。
5+
CodeIgniter 是一个社区驱动的项目,接受来自社区的代码和文档贡献。这些贡献是以 Issue 或 `Pull Request <https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests>`_ 的形式在 GitHub 上的 `CodeIgniter4 仓库 <https://github.com/codeigniter4/CodeIgniter4>`_ 提出的。
66

77
如果你想贡献,请参阅我们代码仓库的 `为 CodeIgniter4 做贡献 <https://github.com/codeigniter4/CodeIgniter4/tree/develop/contributing>`_ 部分。

source/incoming/restful.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CodeIgniter 通过其资源路由和 `ResourceController` 可以轻松创建资
1616
资源路由
1717
***************
1818

19-
你可以使用 ``resource()`` 方法快速为单个资源创建一小 handful 的 RESTful 路由。这会创建完全 CRUD 资源所需的最常见的 5 个路由:创建新资源、更新现有资源、列出所有该资源、显示单个资源以及删除单个资源。第一个参数是资源名称:
19+
你可以使用 ``resource()`` 方法快速为单个资源创建一组 RESTful 路由。这将创建用于完整 CRUD 操作的 5 个最常用的路由:创建新资源、更新现有资源、列出所有资源、显示单个资源和删除单个资源。第一个参数是资源名称
2020

2121
.. literalinclude:: restful/001.php
2222

@@ -143,14 +143,14 @@ Presenter/Controller 对比
143143
================ ========= ====================== ======================== ====================== ======================
144144
**New** GET photos/new photos/new ``new()`` ``new()``
145145
**Create** POST photos photos ``create()`` ``create()``
146-
创建(别名) POST photos/create ``create()``
146+
Create(别名) POST photos/create ``create()``
147147
**List** GET photos photos ``index()`` ``index()``
148148
**Show** GET photos/(:segment) photos/(:segment) ``show($id = null)`` ``show($id = null)``
149-
显示(别名) GET photos/show/(:segment) ``show($id = null)``
149+
Show(别名) GET photos/show/(:segment) ``show($id = null)``
150150
**Edit** GET photos/(:segment)/edit photos/edit/(:segment) ``edit($id = null)`` ``edit($id = null)``
151151
**Update** PUT/PATCH photos/(:segment) ``update($id = null)``
152-
更新(网页安全) POST photos/(:segment) photos/update/(:segment) ``update($id = null)`` ``update($id = null)``
152+
Update(网页安全) POST photos/(:segment) photos/update/(:segment) ``update($id = null)`` ``update($id = null)``
153153
**Remove** GET photos/remove/(:segment) ``remove($id = null)``
154154
**Delete** DELETE photos/(:segment) ``delete($id = null)``
155-
删除(网页安全) POST photos/delete/(:segment) ``delete($id = null)`` ``delete($id = null)``
155+
Delete(网页安全) POST photos/delete/(:segment) ``delete($id = null)`` ``delete($id = null)``
156156
================ ========= ====================== ======================== ====================== ======================

source/installation/upgrade_430.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ redirect()->withInput() 和验证错误
140140
这种行为是一个错误,在 v4.3.0 中已修复。
141141

142142
如果你的代码依赖于此错误,则需要更改代码。
143-
使用新的 Form 辅助函数,:php:func:`validation_errors()`、:php:func:`validation_list_errors()` 和 :php:func:`validation_show_error()`
143+
使用新的 Form 辅助函数, :php:func:`validation_errors()`、:php:func:`validation_list_errors()` 和 :php:func:`validation_show_error()`
144144
来显示验证错误,而不是 Validation 对象。
145145

146146
验证更改
@@ -152,7 +152,7 @@ redirect()->withInput() 和验证错误
152152
Time 修复
153153
==========
154154

155-
- 由于错误修复,:doc:`Time <../libraries/time>` 中的一些方法已从可变行为更改为不可变; ``Time`` 现在扩展 ``DateTimeImmutable``。详细信息请参阅 :ref:`ChangeLog <v430-time-fix>`。
155+
- 由于错误修复, :doc:`Time <../libraries/time>` 中的一些方法已从可变行为更改为不可变; ``Time`` 现在扩展 ``DateTimeImmutable``。详细信息请参阅 :ref:`ChangeLog <v430-time-fix>`。
156156
- 如果需要修改前 ``Time`` 的行为,已添加了一个兼容的 ``TimeLegacy`` 类。请在应用程序代码中全部替换 ``Time`` 为 ``TimeLegacy``。
157157
- 但是 ``TimeLegacy`` 已被废弃。因此我们建议你更新代码。
158158

source/libraries/cookies.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ SameSite 属性只接受三个值:
106106
.. literalinclude:: cookies/006.php
107107

108108
***************
109-
发送 Cookies
109+
发送 Cookie
110110
***************
111111

112-
将 ``Cookie`` 对象设置在 Response 对象的 ``CookieStore`` 中,框架会自动发送 Cookies
112+
将 ``Cookie`` 对象设置在 Response 对象的 ``CookieStore`` 中,框架会自动发送 Cookie
113113

114114
使用 :php:meth:`CodeIgniter\\HTTP\\Response::setCookie()` 来设置:
115115

0 commit comments

Comments
 (0)