mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
34 lines
472 B
PHP
34 lines
472 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Dev\Tests\DevAdminControllerTest;
|
|
|
|
use SilverStripe\Control\Controller;
|
|
|
|
class Controller1 extends Controller
|
|
{
|
|
|
|
const OK_MSG = 'DevAdminControllerTest_Controller1 TEST OK';
|
|
|
|
private static $url_handlers = array(
|
|
'' => 'index',
|
|
'y1' => 'y1Action'
|
|
);
|
|
|
|
private static $allowed_actions = array(
|
|
'index',
|
|
'y1Action',
|
|
);
|
|
|
|
|
|
public function index()
|
|
{
|
|
echo self::OK_MSG;
|
|
}
|
|
|
|
public function y1Action()
|
|
{
|
|
echo self::OK_MSG;
|
|
}
|
|
|
|
}
|