diff --git a/general/controllers/base.html b/general/controllers/base.html index 7330f31ba..1aa1e65d1 100644 --- a/general/controllers/base.html +++ b/general/controllers/base.html @@ -80,6 +80,26 @@

コントローラを作成する

しかし、これはコントローラに公開メソッドを与えることができることも意味します。 このメソッドは他のクラスからも使用できますが、ルーティングできません。

+ +

HTTP method prefixed action.

+ +

+ It's possible to route to HTTP method prefixed actions. Here is an example: +

+ +
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.
+	}
+}
+

サブディレクトリ内のコントローラ