View class, refactoring

This commit is contained in:
xinatorus
2020-05-04 21:19:14 +02:00
parent 8d2af9181a
commit 63e7c95415
8 changed files with 104 additions and 40 deletions

View File

@@ -3,12 +3,8 @@
class ExampleController extends Controller{
public function index(){
echo 'example';
// TODO:
// - set view
// - process POST variables
// ...
$this->view->title = 'Example title';
$this->view->render('example.phtml');
}
public function subpage(){