engelsystem/src/Controllers/AngelTypesController.php

26 lines
488 B
PHP
Raw Normal View History

2023-02-13 19:28:10 +01:00
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Http\Response;
use Engelsystem\Models\AngelType;
class AngelTypesController extends BaseController
{
public function __construct(protected Response $response)
{
}
public function about(): Response
{
$angeltypes = AngelType::all();
return $this->response->withView(
'pages/angeltypes/about',
['angeltypes' => $angeltypes]
);
}
}