public function applyTemplateController($ctr)
    {
        if ($ctr instanceof TemplateController) {
            $this->templateController = $ctr;

            array_merge($this->settings, $this->templateController->getSettings());

            $lang = $this->templateController->getLanguageStrings();
            if ($lang != null)
                if ($this->language == null)
                    $this->language = new Language ();
            $this->language->merge($lang);
        } else {
            $this->templateController = SubViews::getInstance()->getSubView($ctr);
        }
    }