You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Controllers\Home;
|
|
|
|
/**
|
|
* This is a base controller for the home namespace
|
|
*/
|
|
class Controller extends \App\Controllers\Controller
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
|
|
$servers = [
|
|
['type' => 'Minecraft'
|
|
, 'servers' => [
|
|
[
|
|
'name' => 'survival.mc.aney.co.uk'
|
|
,'description' => 'An open to all survival minecraft server.'
|
|
]
|
|
,[
|
|
'name' => 'creative.mc.aney.co.uk'
|
|
,'description' => 'Creative minecraft server.'
|
|
]
|
|
]
|
|
]
|
|
,['type' => 'Factorio'
|
|
, 'servers' => [
|
|
[
|
|
'name' => 'factorio.aney.co.uk'
|
|
,'description' => 'The factory must grow.'
|
|
]
|
|
]
|
|
]
|
|
,['type' => 'misc', 'servers' => []]
|
|
];
|
|
|
|
|
|
response()->render('index', [
|
|
'servers' => $servers
|
|
]);
|
|
|
|
}
|
|
|
|
}
|