use tpl appendPath
This commit is contained in:
parent
63f54ad065
commit
cda97ddad4
@ -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(...),
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user