microserviciile de register, login finalizate

This commit is contained in:
Cerbu Andrei Mihnea
2023-06-15 22:21:53 +03:00
parent a739a66ae4
commit 4e585ba278
159 changed files with 4775 additions and 1747 deletions
+47
View File
@@ -0,0 +1,47 @@
<?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.
}
}