Skip to content
Merged
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
4 changes: 2 additions & 2 deletions ja/console-and-shells.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,15 @@ ProjectTask インスタンスをロードして返します。

// コマンド文字列を使用
$this->dispatchShell([
'command' => 'schema create Blog --plugin Blog'
'command' => 'schema create Blog --plugin Blog',
'extra' => [
'foo' => 'bar'
]
]);

// コマンド配列を使用
$this->dispatchShell([
'command' => ['schema', 'create', 'Blog', '--plugin', 'Blog']
'command' => ['schema', 'create', 'Blog', '--plugin', 'Blog'],
'extra' => [
'foo' => 'bar'
]
Expand Down
5 changes: 4 additions & 1 deletion ja/controllers/request-response.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ CakePHP のリクエストオブジェクトは、入ってきたリクエスト

$controllerName = $this->request->getParam('controller');

// 3.4.0 より前
$controllerName = $this->request->param('controller');

すべての :ref:`route-elements` は、このインタフェースを通してアクセスされます。

:ref:`route-elements` に加えて :ref:`passed-arguments` へのアクセスがしばしば必要になります。
Expand Down Expand Up @@ -69,7 +72,7 @@ CakePHP のリクエストオブジェクトは、入ってきたリクエスト
$this->request->query('page');

query プロパティに直接アクセスするか、エラーが発生しない方法で URL クエリ配列を読むために
``query()`` メソッドを使用することができます。キーが存在しない場合、 ``null`` が返ります。 ::
``getQuery()`` メソッドを使用することができます。キーが存在しない場合、 ``null`` が返ります。 ::

$foo = $this->request->getQuery('value_that_does_not_exist');
// $foo === null
Expand Down
10 changes: 4 additions & 6 deletions ja/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,10 @@ CakePHP では、コントローラのアクションをスリムに保ち、ア
Finder メソッドは、常に :doc:`/orm/query-builder` オブジェクトとオプション配列を
パラメータとして取得します。Finder メソッドは、クエリーを操作し、任意の必須条件や抽出条件を
追加することができます。完了時、Finder メソッドは更新されたクエリーオブジェクトを
返さなければなりません。finder の中で、'matching' タグを持つ特定のブックマークを
検索するために ``distinct()`` や ``matching()`` メソッドを使います。 ``matching()``
メソッドは、引数としてクエリービルダーを受け取る `無名関数
<http://php.net/manual/ja/functions.anonymous.php>`_ を受け付けます。
コールバック内でクエリービルダーを特定のタグを持つブックマークをフィルターするための
条件を定義するために使います。
返さなければなりません。finder の中で、一致するタグを持つ特定のブックマークを検索するために、
``innerJoinWith()`` 、 ``where()`` そして ``group`` メソッドを使います。
タグの指定がない場合、タグなしでブックマークを検索するために ``leftJoinWith()`` を使用して、
'where' 条件を変更します。

ビューの作成
-------------
Expand Down