Skip to content

Commit

Permalink
cakephp#3731 change api links to 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Feb 11, 2016
1 parent 798f125 commit 04f906f
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion en/console-and-shells/upgrade-shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ available run the command::

./Console/cake upgrade --help

Or visit the `API docs <http://api.cakephp.org/2.7/class-UpgradeShell.html>`_ for more info.
Or visit the `API docs <http://api.cakephp.org/2.8/class-UpgradeShell.html>`_ for more info.

Upgrade Your App
----------------
Expand Down
4 changes: 2 additions & 2 deletions en/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Controller Methods
==================

For a complete list of controller methods and their descriptions
visit the `CakePHP API <http://api.cakephp.org/2.7/class-Controller.html>`_.
visit the `CakePHP API <http://api.cakephp.org/2.8/class-Controller.html>`_.

Interacting with Views
----------------------
Expand Down Expand Up @@ -678,7 +678,7 @@ Controller Attributes
=====================

For a complete list of controller attributes and their descriptions
visit the `CakePHP API <http://api.cakephp.org/2.7/class-Controller.html>`_.
visit the `CakePHP API <http://api.cakephp.org/2.8/class-Controller.html>`_.

.. php:attr:: name
Expand Down
2 changes: 1 addition & 1 deletion en/core-libraries/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Closing the Form
<div class="glass-pill"><input type="submit" value="Update" name="Update">
</div>

See the `Form Helper API <http://api.cakephp.org/2.7/class-FormHelper.html>`_ for further details.
See the `Form Helper API <http://api.cakephp.org/2.8/class-FormHelper.html>`_ for further details.

.. note::

Expand Down
2 changes: 1 addition & 1 deletion en/core-libraries/helpers/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ methods of the HtmlHelper and how to use them.
/posts/search?foo=bar#first

For further information check
`Router::url <http://api.cakephp.org/2.7/class-Router.html#_url>`_
`Router::url <http://api.cakephp.org/2.8/class-Router.html#_url>`_
in the API.

.. php:method:: useTag(string $tag)
Expand Down
2 changes: 1 addition & 1 deletion en/core-libraries/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ assume a tabular layout, but the PaginatorHelper available in views
doesn't always need to be restricted as such.

See the details on
`PaginatorHelper <http://api.cakephp.org/2.7/class-PaginatorHelper.html>`_
`PaginatorHelper <http://api.cakephp.org/2.8/class-PaginatorHelper.html>`_
in the API. As mentioned, the PaginatorHelper also offers sorting features
which can be easily integrated into your table column headers:

Expand Down
2 changes: 1 addition & 1 deletion en/core-utility-libraries/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Security

.. php:class:: Security
The `security library <http://api.cakephp.org/2.7/class-Security.html>`_
The `security library <http://api.cakephp.org/2.8/class-Security.html>`_
handles basic security measures such as providing methods for
hashing and encrypting data.

Expand Down
6 changes: 3 additions & 3 deletions en/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ Installing CakePHP with Composer
Composer is a dependency management tool for PHP 5.3+. It solves many of the
problems the PEAR installer has, and simplifies managing multiple versions of
libraries. `Packagist <https://packagist.org/>`_ is the main repository of
Composer installable packages. Since CakePHP also publishes releases to Packagist,
Composer installable packages. Since CakePHP also publishes releases to Packagist,
you can install CakePHP using `Composer <http://getcomposer.org>`_.
Before installing CakePHP you'll need to setup a ``composer.json`` file. A
Before installing CakePHP you'll need to setup a ``composer.json`` file. A
composer.json file for a CakePHP application would look like the following::

{
"name": "example-app",
"require": {
"cakephp/cakephp": "2.7.*"
"cakephp/cakephp": "2.8.*"
},
"config": {
"vendor-dir": "Vendor/"
Expand Down
2 changes: 1 addition & 1 deletion en/models/model-attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Model attributes allow you to set properties that can override the
default model behavior.

For a complete list of model attributes and their descriptions
visit the `CakePHP API <http://api.cakephp.org/2.7/class-Model.html>`_.
visit the `CakePHP API <http://api.cakephp.org/2.8/class-Model.html>`_.

useDbConfig
===========
Expand Down
2 changes: 1 addition & 1 deletion fr/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ suit::
{
"name": "example-app",
"require": {
"cakephp/cakephp": "2.7.*"
"cakephp/cakephp": "2.8.*"
},
"config": {
"vendor-dir": "Vendor/"
Expand Down
2 changes: 1 addition & 1 deletion ja/core-libraries/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ create() には多くのオプションがあります:
</div>

詳細は
`Form Helper API <http://api.cakephp.org/2.7/class-FormHelper.html>`_
`Form Helper API <http://api.cakephp.org/2.8/class-FormHelper.html>`_
を参照してください。

.. note::
Expand Down
2 changes: 1 addition & 1 deletion ja/core-libraries/helpers/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ CPU のサイクルを減らすために、ビューをキャッシュするこ
/posts/search?foo=bar#first

より詳しい情報は、API 集の
`Router::url <http://api.cakephp.org/2.7/class-Router.html#_url>`_
`Router::url <http://api.cakephp.org/2.8/class-Router.html#_url>`_
を確認してください。

.. php:method:: useTag(string $tag)
Expand Down
2 changes: 1 addition & 1 deletion ja/core-libraries/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ PaginatorHelper を設定して JavaScript ヘルパーを使う
機能を制限されているわけではありません。

詳細は API の中の
`PaginatorHelper <http://api.cakephp.org/2.7/class-PaginatorHelper.html>`_
`PaginatorHelper <http://api.cakephp.org/2.8/class-PaginatorHelper.html>`_
を参照してください。なお前述のように PaginatorHelper ではソート機能を提供
してますので、これをテーブルの見出しの中に簡単に組み込めるようになっています。

Expand Down
2 changes: 1 addition & 1 deletion ja/core-utility-libraries/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Security

.. php:class:: Security
`Security ライブラリ <http://api.cakephp.org/2.7/class-Security.html>`_ は、
`Security ライブラリ <http://api.cakephp.org/2.8/class-Security.html>`_ は、
データのハッシュ化や暗号化などのメソッドなどの基本的なセキュリティ分野を取り扱います。

Security API
Expand Down
2 changes: 1 addition & 1 deletion ja/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CakePHP アプリケーションのための composer.json ファイルは次の
{
"name": "example-app",
"require": {
"cakephp/cakephp": "2.7.*"
"cakephp/cakephp": "2.8.*"
},
"config": {
"vendor-dir": "Vendor/"
Expand Down
2 changes: 1 addition & 1 deletion ja/models/model-attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
設定することができます。

モデルの属性の完全なリストと説明については、
`CakePHP API <http://api.cakephp.org/2.7/class-Model.html>`_ をご覧ください。
`CakePHP API <http://api.cakephp.org/2.8/class-Model.html>`_ をご覧ください。

useDbConfig
===========
Expand Down
4 changes: 2 additions & 2 deletions zh/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ CakePHP 控制器带有回调方法,用来在请求生命周期的各个阶段
==========

欲知控制器方法的完整列表及其描述,请参看
`CakePHP API <http://api.cakephp.org/2.7/class-Controller.html>`_ 。
`CakePHP API <http://api.cakephp.org/2.8/class-Controller.html>`_ 。

与视图交互
----------
Expand Down Expand Up @@ -600,7 +600,7 @@ CakePHP 就不会试图再次渲染该视图了::
==========

欲知控制器属性的完整列表及其描述,请参看
`CakePHP API <http://api.cakephp.org/2.7/class-Controller.html>`_ 。
`CakePHP API <http://api.cakephp.org/2.8/class-Controller.html>`_ 。

.. php:attr:: name
Expand Down
2 changes: 1 addition & 1 deletion zh/core-libraries/helpers/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ HtmlHelper助件的一些方法及如何使用它们。
/posts/search?foo=bar#first

欲知详情,请查看API中的
`Router::url <http://api.cakephp.org/2.7/class-Router.html#_url>`_。
`Router::url <http://api.cakephp.org/2.8/class-Router.html#_url>`_。

.. php:method:: useTag(string $tag)
Expand Down
16 changes: 8 additions & 8 deletions zh/installation/advanced-installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ CakePHP 发行 PEAR 的安装包,故可以通过 PEAR 安装器安装。用 PE
================================

Composer 是一个适用于 PHP 5.3+ 的依赖管理工具,解决了通过 PEAR 安装的很多问题,并
且简化了对类库的多个版本的管理。由于 CakePHP 有 PEAR 发行包,故而可以使用
且简化了对类库的多个版本的管理。由于 CakePHP 有 PEAR 发行包,故而可以使用
`Composer <http://getcomposer.org>`_ 安装 CakePHP。在安装 CakePHP 之前需要建立
``composer.json`` 文件。CakePHP 应用程序的 composer.json 可以象下面这样::

{
"name": "example-app",
"require": {
"cakephp/cakephp": "2.7.*"
"cakephp/cakephp": "2.8.*"
},
"config": {
"vendor-dir": "Vendor/"
}
}

把这段 JSON 保存在项目的 APP 目录中的 ``composer.json`` 文件中。接下来把
把这段 JSON 保存在项目的 APP 目录中的 ``composer.json`` 文件中。接下来把
composer.phar 文件下载到项目中。在 ``composer.json`` 所在的目录下运行如下命令::

$ php composer.phar install
Expand All @@ -59,7 +59,7 @@ composer.phar 文件下载到项目中。在 ``composer.json`` 所在的目录
$ Vendor/bin/cake bake project <path to project>

缺省情况下,``bake`` 把 :php:const:`CAKE_CORE_INCLUDE_PATH` 硬编码了。为了使应用
程序更具移植性,应当修改 ``webroot/index.php`` ,将 ``CAKE_CORE_INCLUDE_PATH``
程序更具移植性,应当修改 ``webroot/index.php`` ,将 ``CAKE_CORE_INCLUDE_PATH``
改为相对路径::

define(
Expand Down Expand Up @@ -92,7 +92,7 @@ composer.phar 文件下载到项目中。在 ``composer.json`` 所在的目录
====================================================

在某些情况下,你会希望把 CakePHP 的目录放到文件系统的不同地方。这可能是因为共享主
机的限制,或者你只是想让一些应用程序共享相同的 CakePHP 类库。本节将说明怎样把
机的限制,或者你只是想让一些应用程序共享相同的 CakePHP 类库。本节将说明怎样把
CakePHP 的目录分散到文件系统的的不同地方。

首先,明确 Cake 的应用程序有三个主要部分:
Expand All @@ -102,7 +102,7 @@ CakePHP 的目录分散到文件系统的的不同地方。
#. 应用程序的 webroot,通常位于 /app/webroot 目录。

这里的每个目录,都可以放到文件系统的任何位置,除了 webroot,它必须位于 web 服务器
能够访问到的地方。甚至可以将 webroot 目录移动到 app 目录外面,只要你告诉 CakePHP
能够访问到的地方。甚至可以将 webroot 目录移动到 app 目录外面,只要你告诉 CakePHP
你把它放在了哪里。

配置 CakePHP 的安装时,需要对下面的文件做一些修改。
Expand All @@ -118,14 +118,14 @@ CakePHP 的目录分散到文件系统的的不同地方。
- ``APP_DIR`` 应当设置为 app 目录的目录名称(译注:即不包含前面的路径)。
- ``CAKE_CORE_INCLUDE_PATH`` 应当设置为 CakePHP 类库目录的路径。

让我们通过下面的例子,让你明白高级安装实际上是怎样的。设想我要象下面这样设置
让我们通过下面的例子,让你明白高级安装实际上是怎样的。设想我要象下面这样设置
CakePHP:

- CakePHP 的核心类库位于 /usr/lib/cake。
- 应用程序的 webroot 目录是 /var/www/mysite/。
- 应用程序的 app 目录是 /home/me/myapp。

鉴于这种类型的设置,我需要编辑 webroot/index.php 文件(在本例中为
鉴于这种类型的设置,我需要编辑 webroot/index.php 文件(在本例中为
/var/www/mysite/index.php),(让它)像下面这样::

// /app/webroot/index.php (部分代码,删除了注释)
Expand Down
2 changes: 1 addition & 1 deletion zh/models/model-attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
模型属性让你可以改变默认的模型行为。

欲知完整的模型属性列表及描述请,请访问
`CakePHP API <http://api.cakephp.org/2.7/class-Model.html>`_。
`CakePHP API <http://api.cakephp.org/2.8/class-Model.html>`_。

useDbConfig
===========
Expand Down

0 comments on commit 04f906f

Please sign in to comment.