Create NGController.php

This commit is contained in:
themohooks 2025-02-25 23:02:08 +03:00
parent 20b34878c6
commit 31ae91a71e

View file

@ -0,0 +1,19 @@
<?php
namespace App\Controllers;
use \App\Core\Page;
abstract class NGController
{
protected $page;
public function __construct()
{
$this->page = new Page();
}
protected function render(string $view, array $params = [])
{
$this->page->render($view, $params);
}
}