mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
20 lines
475 B
PHP
20 lines
475 B
PHP
|
<?php
|
||
|
class CMSPagesController extends CMSMain {
|
||
|
|
||
|
static $url_segment = 'pages';
|
||
|
static $url_rule = '/$Action/$ID/$OtherID';
|
||
|
static $url_priority = 41;
|
||
|
static $menu_title = 'Pages';
|
||
|
|
||
|
function init() {
|
||
|
parent::init();
|
||
|
|
||
|
Requirements::javascript(CMS_DIR . '/javascript/CMSPagesController.Tree.js');
|
||
|
}
|
||
|
|
||
|
function show($request) {
|
||
|
$c = new CMSPageEditController();
|
||
|
return $this->redirect(Controller::join_links($c->Link('show'), $request->param('ID')));
|
||
|
}
|
||
|
|
||
|
}
|