1st commit
This commit is contained in:
14
app/Controllers/Controller.php
Normal file
14
app/Controllers/Controller.php
Normal 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');
|
||||
}
|
||||
}
|
14
app/Controllers/LoginController.php
Normal file
14
app/Controllers/LoginController.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace ps\app\Controllers;
|
||||
|
||||
class LoginController extends Controller
|
||||
{
|
||||
public $filename = 'login';
|
||||
public function actionGetLoginForm()
|
||||
{
|
||||
|
||||
parent::getViewAction($this->filename);
|
||||
|
||||
}
|
||||
}
|
11
app/Controllers/PostsController.php
Normal file
11
app/Controllers/PostsController.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace ps\app\Controllers;
|
||||
|
||||
class PostsController
|
||||
{
|
||||
public function getPosts()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user