From d09fda92422d391f63a2c500e502c79f2ce05422 Mon Sep 17 00:00:00 2001
From: Frank de Jonge Creating a controller
isn't allowed, "action_list" is no problem). But this also means you can give your controller public
methods that can be used from other classes but are not routable.
+ 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.
+ }
+}
+