This commit is contained in:
2026-05-15 20:23:25 +02:00
parent c980004309
commit bc5cae7e82
74 changed files with 563 additions and 130 deletions

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* Klasa FrontControllera
*
@@ -168,7 +168,8 @@ class FrontController {
if((!method_exists($this->controllerObj, $method) && !method_exists($this->controllerObj, $method.'Action'))) {
$this->method = 'Index';
}
if($this->loadError && ($this->method=='Index' && $this->route['param']['urlParam']!='')) {
$urlParam = isset($this->route['param']['urlParam']) ? $this->route['param']['urlParam'] : '';
if($this->loadError && ($this->method=='Index' && $urlParam!='')) {
//Utils::ArrayDisplay($this->route, __FILE__.' Line: '.__LINE__);
$this->method = 'Error404';
}
@@ -651,4 +652,4 @@ class FrontController {
}
}
?>
?>