From ba6513b2b1a25660c6726e442e0fb989709a8924 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 19 Jan 2014 17:46:21 -0800 Subject: [PATCH] Adding a Link section to controller.md showing the Link() function returning custom route value. --- docs/en/topics/controller.md | 11 +++++++++++ 1 file changed, 11 insertions(+) mode change 100644 => 100755 docs/en/topics/controller.md diff --git a/docs/en/topics/controller.md b/docs/en/topics/controller.md old mode 100644 new mode 100755 index a8c90ddc2..6ce6599ad --- a/docs/en/topics/controller.md +++ b/docs/en/topics/controller.md @@ -54,6 +54,17 @@ making any code changes to your controller. so a `MyController` class is accessible through `http://yourdomain.com/MyController`. +## Link + +Return the link for this Controller. Should return a value that makes sense with your custom route. + + :::php + class FastFood_Controller extends Controller { + public function Link() { + return 'fastfood'; + } + } + ## Access Control ### Through $allowed_actions