Merge pull request #1774 from SticksTucker/patch-1

Include AllPages() form method to $allowed_actions
This commit is contained in:
Will Rossiter 2013-04-17 22:17:30 -07:00
commit e13ce9b98f

View File

@ -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();