assignValues example


    public function render($_renderer = '')
    {
        if (!empty($_renderer)) {
            $this->_renderer = $_renderer;
        }
        if ($this->_valuesAssigend == false) {
            $this->assignValues();
        }

        if (!empty($this->_subshop['doc_template_id'])) {
            $template = Shopware()->Container()->get(ModelManager::class)->find(Template::class$this->_subshop['doc_template_id']);

            $inheritance = Shopware()->Container()->get('theme_inheritance')->getTemplateDirectories($template);
            $this->_template->setTemplateDir($inheritance);
        }

        $html = $this->_template->fetch('documents/' . $this->_document['template']$this->_view);

        
Home | Imprint | This part of the site doesn't use cookies.