Merge pull request #2789 from mrsmuneton/ControllerLinkDocumentation

Adding a Link section to controller.md.
This commit is contained in:
Ingo Schommer 2014-01-22 22:22:53 +13:00
commit 318073b05d

11
docs/en/topics/controller.md Normal file → Executable file
View File

@ -54,6 +54,17 @@ making any code changes to your controller.
so a `MyController` class is accessible through `http://localhost/MyController`.
</div>
## 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