Storm patrik Fixes

This commit is contained in:
JonatanRek
2020-04-28 11:43:07 +02:00
parent 57501e2847
commit 2560800efb
10 changed files with 4 additions and 21 deletions

View File

@@ -26,8 +26,8 @@ class Template{
function render() {
extract($this->assignedValues);
if (!empty('../app/controls/' . $this->path . '.php') && file_exists('../app/controls/' . $this->path . '.php')) {
include('../app/controls/' . $this->path . '.php');
if (!empty('../app/controllers/' . $this->path . 'Controller.php') && file_exists('../app/controllers/' . $this->path . 'Controller.php')) {
include('../app/controllers/' . $this->path . 'Controller.php');
}
require_once('../app/views/templates/' . $this->path . '.phtml');
}