- added SEO-URL-Mode
- added Language support
This commit is contained in:
parent
fe7bacd2f6
commit
ccf2f506f0
13 changed files with 201 additions and 7 deletions
|
|
@ -24,14 +24,18 @@ class Venom
|
|||
{
|
||||
// we need to load the current controller and the current start template.
|
||||
// after this we can start the renderer
|
||||
$registry = Registry::getInstance();
|
||||
$registry->getSeo()->loadSite();
|
||||
$registry->getLang()->initLang();
|
||||
$this->renderer->init($this->findController());
|
||||
$this->renderer->render();
|
||||
}
|
||||
|
||||
private function findController(): ?RenderController
|
||||
{
|
||||
if (isset($_GET['cl'], $this->controllers[$_GET['cl']])) {
|
||||
return $this->controllers[$_GET['cl']];
|
||||
$cl = ArgumentHandler::get()->getItem('cl');
|
||||
if ($cl != null && isset($this->controllers[$cl])) {
|
||||
return $this->controllers[$cl];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue