Files

47 lines
960 B
PHP
Executable File

<?php
namespace app\controllers;
use app\core\Application;
use app\core\Controller;
use app\core\Model;
use app\core\Request;
use app\core\Response;
use app\models\ContactForm;
class SiteController extends Controller
{
public function Homepage(): string
{
return $this->render();
}
public function profile(): string
{
return $this->render('profile');
}
public static function renderMainPage(): string
{
Application::$app->view->setLayout('Main');
return Application::$app->view->renderLayout();
}
public function _404(): string
{
return $this->render();
}
public function _403(): string
{
return $this->render();
}
protected static function setControllerParams(string $title, string $view, string $layout, ?Model $model)
{
// TODO: Implement setControllerParams() method.
}
}