mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2789 from mrsmuneton/ControllerLinkDocumentation
Adding a Link section to controller.md.
This commit is contained in:
commit
318073b05d
11
docs/en/topics/controller.md
Normal file → Executable file
11
docs/en/topics/controller.md
Normal file → Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user