silverstripe-framework/tests/php/Dev/DevAdminControllerTest/Controller1.php

33 lines
540 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Dev\Tests\DevAdminControllerTest;
use SilverStripe\Control\Controller;
class Controller1 extends Controller
{
const OK_MSG = 'DevAdminControllerTest_Controller1 TEST OK';
2016-10-14 03:30:05 +02:00
private static $url_handlers = array(
'' => 'index',
'y1' => 'y1Action'
);
2016-10-14 03:30:05 +02:00
private static $allowed_actions = array(
'index',
'y1Action',
);
2016-10-14 03:30:05 +02:00
public function index()
{
echo self::OK_MSG;
}
2016-10-14 03:30:05 +02:00
public function y1Action()
{
echo self::OK_MSG;
}
2016-10-14 03:30:05 +02:00
}