Initial dev export (exclude uploads/runtime)
This commit is contained in:
31
modules/artists/ArtistsController.php
Normal file
31
modules/artists/ArtistsController.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Artists;
|
||||
|
||||
use Core\Http\Response;
|
||||
use Core\Views\View;
|
||||
|
||||
class ArtistsController
|
||||
{
|
||||
private View $view;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->view = new View(__DIR__ . '/views');
|
||||
}
|
||||
|
||||
public function index(): Response
|
||||
{
|
||||
return new Response($this->view->render('site/index.php', [
|
||||
'title' => 'Artists',
|
||||
]));
|
||||
}
|
||||
|
||||
public function show(): Response
|
||||
{
|
||||
return new Response($this->view->render('site/show.php', [
|
||||
'title' => 'Artist Profile',
|
||||
]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user