mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
24 lines
451 B
PHP
24 lines
451 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Controllers;
|
|
|
|
use SilverStripe\CMS\Controllers\ContentController;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class ContentControllerTest_PageController extends ContentController implements TestOnly
|
|
{
|
|
private static $allowed_actions = [
|
|
'second_index',
|
|
];
|
|
|
|
public function index()
|
|
{
|
|
return $this->Title;
|
|
}
|
|
|
|
public function second_index()
|
|
{
|
|
return $this->index();
|
|
}
|
|
}
|