silverstripe-cms/tests/php/Controllers/ContentControllerTest_PageController.php

25 lines
416 B
PHP
Raw Permalink Normal View History

<?php
2017-08-09 04:53:38 +02:00
namespace SilverStripe\CMS\Tests\Controllers;
2017-08-09 03:25:12 +02:00
use SilverStripe\Dev\TestOnly;
2017-08-09 03:25:12 +02:00
use PageController;
class ContentControllerTest_PageController extends PageController implements TestOnly
{
private static $allowed_actions = [
'second_index'
];
public function index()
{
return $this->Title;
}
public function second_index()
{
return $this->index();
}
}