sdsd
This commit is contained in:
@@ -8,8 +8,11 @@
|
|||||||
* tpl('faq', 'landing', 'fakecheck'); // landing/fakecheck/faq.php
|
* tpl('faq', 'landing', 'fakecheck'); // landing/fakecheck/faq.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo "<!-- DEBUG: tpl geladen -->\n";
|
||||||
|
|
||||||
function tpl(string $file, string $type = 'structure', string $site = 'main'): void
|
function tpl(string $file, string $type = 'structure', string $site = 'main'): void
|
||||||
{
|
{
|
||||||
|
|
||||||
// Basisordner
|
// Basisordner
|
||||||
$base = __DIR__ . '/../partials/';
|
$base = __DIR__ . '/../partials/';
|
||||||
|
|
||||||
@@ -34,11 +37,12 @@ function tpl(string $file, string $type = 'structure', string $site = 'main'): v
|
|||||||
// structure -> structure/{file}.php
|
// structure -> structure/{file}.php
|
||||||
$path = $base . "structure/$file.php";
|
$path = $base . "structure/$file.php";
|
||||||
}
|
}
|
||||||
|
echo "<!-- DEBUG: include path = $path -->\n";
|
||||||
// Datei laden
|
// Datei laden
|
||||||
if (file_exists($path)) {
|
if (file_exists($path)) {
|
||||||
include $path;
|
include $path;
|
||||||
} else {
|
} else {
|
||||||
echo "<!-- tpl(): Datei nicht gefunden: $path -->";
|
echo "<!-- tpl(): Datei nicht gefunden: $path -->";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user