Adding a Link section to controller.md showing the Link() function returning custom route value.

This commit is contained in:
Ray 2014-01-19 17:46:21 -08:00
parent abe09c79e5
commit ba6513b2b1

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://yourdomain.com/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