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