diff --git a/mysite/code/Page.php b/mysite/code/Page.php index 0775444..9437a93 100755 --- a/mysite/code/Page.php +++ b/mysite/code/Page.php @@ -1,41 +1,12 @@ - * array ( - * 'action', // anyone can access this action - * 'action' => true, // same as above - * 'action' => 'ADMIN', // you must have ADMIN permissions to access this action - * 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true - * ); - * - * - * @var array - */ - private static $allowed_actions = array ( - ); - - public function init() { - parent::init(); - // You can include any CSS or JS required by your project here. - // See: https://docs.silverstripe.org/en/developer_guides/templates/requirements/ - } - } diff --git a/mysite/code/PageController.php b/mysite/code/PageController.php new file mode 100644 index 0000000..fa4547d --- /dev/null +++ b/mysite/code/PageController.php @@ -0,0 +1,31 @@ + + * array ( + * 'action', // anyone can access this action + * 'action' => true, // same as above + * 'action' => 'ADMIN', // you must have ADMIN permissions to access this action + * 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true + * ); + * + * + * @var array + */ + private static $allowed_actions = array( + ); + + public function init() + { + parent::init(); + // You can include any CSS or JS required by your project here. + // See: https://docs.silverstripe.org/en/developer_guides/templates/requirements/ + } +}