use tpl appendPath

This commit is contained in:
Jean-Christian Paul Denis 2023-11-04 15:09:47 +01:00
parent 63f54ad065
commit cda97ddad4
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 3 additions and 6 deletions

View File

@ -27,10 +27,7 @@ class Frontend extends Process
return false; return false;
} }
App::frontend()->template()->setPath( App::frontend()->template()->appendPath(My::path() . DIRECTORY_SEPARATOR . 'default-templates');
App::frontend()->template()->getPath(),
My::path() . DIRECTORY_SEPARATOR . 'default-templates'
);
App::behavior()->addBehaviors([ App::behavior()->addBehaviors([
'initWidgets' => Widgets::init(...), 'initWidgets' => Widgets::init(...),

View File

@ -179,7 +179,7 @@ class FrontendUrl extends Url
} }
} }
App::frontend()->template()->setPath(App::frontend()->template()->getPath(), My::path() . '/default-templates'); App::frontend()->template()->appendPath(My::path() . '/default-templates');
self::serveDocument('kutrl.html'); self::serveDocument('kutrl.html');
} }
@ -191,7 +191,7 @@ class FrontendUrl extends Url
return; return;
} }
App::frontend()->template()->setPath(App::frontend()->template()->getPath(), My::path() . '/default-templates'); App::frontend()->template()->appendPath(My::path() . '/default-templates');
header('Content-Type: text/html; charset=UTF-8'); header('Content-Type: text/html; charset=UTF-8');
Http::head(404, 'Not Found'); Http::head(404, 'Not Found');