1st commit

This commit is contained in:
2024-05-15 14:00:13 +05:00
commit b146e3b554
11 changed files with 191 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php
namespace ps\app\Controllers;
use ps\STE\STEView;
class Controller
{
protected function getViewAction($filename)
{
$view = new STEView();
$view->viewPath = 'views/';
$view->render(''.$filename.'.php');
}
}

View File

@ -0,0 +1,14 @@
<?php
namespace ps\app\Controllers;
class LoginController extends Controller
{
public $filename = 'login';
public function actionGetLoginForm()
{
parent::getViewAction($this->filename);
}
}

View File

@ -0,0 +1,11 @@
<?php
namespace ps\app\Controllers;
class PostsController
{
public function getPosts()
{
}
}