26 lines
556 B
PHP
26 lines
556 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
class Home extends PublicController
|
|
{
|
|
public function index(): string
|
|
{
|
|
return view('welcome_message');
|
|
}
|
|
|
|
public function test()
|
|
{
|
|
echo base_url();
|
|
//echo ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http') . "://{$_SERVER['SERVER_NAME']}".str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
|
|
return view('welcome_message');
|
|
return view('test');
|
|
}
|
|
|
|
public function testService()
|
|
{
|
|
return 'from test service';
|
|
}
|
|
|
|
}
|