silverstripe-cms/tests/controller/ContentControllerTest_PageController.php

22 lines
354 B
PHP
Raw Normal View History

<?php
use SilverStripe\Dev\TestOnly;
class ContentControllerTest_PageController extends PageController implements TestOnly
{
private static $allowed_actions = array(
'second_index'
);
public function index()
{
return $this->Title;
}
public function second_index()
{
return $this->index();
}
}