2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Dev\Tests\DevAdminControllerTest;
|
|
|
|
|
|
|
|
use SilverStripe\Control\Controller;
|
|
|
|
|
|
|
|
class Controller1 extends Controller
|
|
|
|
{
|
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
const OK_MSG = 'DevAdminControllerTest_Controller1 TEST OK';
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $url_handlers = [
|
2016-12-16 05:34:21 +01:00
|
|
|
'' => 'index',
|
|
|
|
'y1' => 'y1Action'
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $allowed_actions = [
|
2016-12-16 05:34:21 +01:00
|
|
|
'index',
|
|
|
|
'y1Action',
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function index()
|
|
|
|
{
|
2024-06-17 23:37:39 +02:00
|
|
|
echo Controller1::OK_MSG;
|
2016-12-16 05:34:21 +01:00
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function y1Action()
|
|
|
|
{
|
2024-06-17 23:37:39 +02:00
|
|
|
echo Controller1::OK_MSG;
|
2016-12-16 05:34:21 +01:00
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|