mirror of
https://github.com/claradex/nativegallery.git
synced 2025-03-25 18:58:16 +03:00
Create NGController.php
This commit is contained in:
parent
20b34878c6
commit
31ae91a71e
1 changed files with 19 additions and 0 deletions
19
app/Controllers/NGController.php
Normal file
19
app/Controllers/NGController.php
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue