mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #1774 from SticksTucker/patch-1
Include AllPages() form method to $allowed_actions
This commit is contained in:
commit
e13ce9b98f
@ -42,7 +42,7 @@ Here is an example where we display a basic gridfield with the default settings:
|
|||||||
:::php
|
:::php
|
||||||
class GridController extends Page_Controller {
|
class GridController extends Page_Controller {
|
||||||
|
|
||||||
static $allowed_actions = array('index');
|
static $allowed_actions = array('index', 'AllPages');
|
||||||
|
|
||||||
public function index(SS_HTTPRequest $request) {
|
public function index(SS_HTTPRequest $request) {
|
||||||
$this->Content = $this->AllPages();
|
$this->Content = $this->AllPages();
|
||||||
@ -263,4 +263,4 @@ A GridFieldComponent sets and gets data from the GridState.
|
|||||||
## Related
|
## Related
|
||||||
|
|
||||||
* [ModelAdmin: A UI driven by GridField](/reference/modeladmin)
|
* [ModelAdmin: A UI driven by GridField](/reference/modeladmin)
|
||||||
* [Tutorial 5: Dataobject Relationship Management](/tutorials/5-dataobject-relationship-management)
|
* [Tutorial 5: Dataobject Relationship Management](/tutorials/5-dataobject-relationship-management)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user