Twig输出在html中的错误位置

时间:2019-06-15 07:58:07

标签: php twig opencart

我为Opencart编写了一些服装控制器,它们在页面顶部输出了树枝模板。

class ControllerCommonHome extends Controller
{
    public function index()
    {
        $this->document->setTitle($this->config->get('config_meta_title'));
        $this->document->setDescription($this->config->get('config_meta_description'));
        $this->document->setKeywords($this->config->get('config_meta_keyword'));

        if (isset($this->request->get['route'])) {
            $this->document->addLink($this->config->get('config_url'), 'canonical');
        }

        $data['content_top'] = $this->load->controller('common/content_top');
        $data['content_bottom'] = $this->load->controller('common/content_bottom');
        $data['carousel'] = $this->load->controller('common/carousel');
        $data['footer'] = $this->load->controller('common/footer');
        $data['header'] = $this->load->controller('common/header');

        $this->response->setOutput($this->load->view('common/home', $data));
    }
}

http://hellotree.thlab.ru/

输出为HTML

0 个答案:

没有答案