Skip to content

Commit

Permalink
Merge branch '1.3/develop' of git://github.com/fuel/docs into 1.3/dev…
Browse files Browse the repository at this point in the history
…elop_japanese
  • Loading branch information
宮川 貴子 authored and 宮川 貴子 committed Aug 18, 2012
2 parents d3ef2db + d09fda9 commit 08fa810
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions general/controllers/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,26 @@ <h3 id="creating_a_controller">コントローラを作成する</h3>
しかし、これはコントローラに公開メソッドを与えることができることも意味します。
このメソッドは他のクラスからも使用できますが、ルーティングできません。
</p>

<h3 id="http_method_prefixed_actions">HTTP method prefixed action.</h3>

<p>
It's possible to route to HTTP method prefixed actions. Here is an example:
</p>

<pre class="php"><code>class Controller_Example extends Controller
{
public function get_index()
{
// This will be called when the HTTP method is GET.
}

public function post_index()
{
// This will be called when the HTTP method is POST.
}
}
</code></pre>

<h4 id="controller_in_subdir">サブディレクトリ内のコントローラ</h4>

Expand Down

0 comments on commit 08fa810

Please sign in to comment.