访问URL时,我的代码出现此错误。我刚刚尝试安装OpenCart主题
通知:未定义的属性:第2行/home/concrixt/public_html/catalog/view/theme/lexus_ceramix/template/module/featured.tpl中的Template \ Basic :: $ registry 致命错误:在第2行上的/home/concrixt/public_html/catalog/view/theme/lexus_ceramix/template/module/featured.tpl中的null上调用成员函数get()
该文件的代码如下所示
<?php
$load = $this->registry->get("load");
$language = $load->language("module/themecontrol");
$text_sale = $language['text_sale'];
$quick_view = $language['quick_view'];
?>
<div class="panel panel-default">
<?php
$config = $this->registry->get('config');
require( DIR_TEMPLATE.$config-
>get('config_template')."/template/common/products_carousel.tpl" ); ?>
</div>