如何在Opencart 2中为特定信息页面创建自定义布局
我正在尝试为Opencart 2中的信息页面创建一个自定义布局,它似乎根本不起作用。以下是我们所做的:如何在Opencart 2中为特定信息页面创建自定义布局,opencart,opencart2.x,opencart-module,Opencart,Opencart2.x,Opencart Module,我正在尝试为Opencart 2中的信息页面创建一个自定义布局,它似乎根本不起作用。以下是我们所做的: 已将/catalog/view/theme/_my_theme/information/information.tpl复制到 /catalog/view/theme/_my_theme/information/newproducts.tpl并做了一些小改动 已将/catalog/controller/information/information.php复制到/catalog/control
- 已将/catalog/view/theme/_my_theme/information/information.tpl复制到 /catalog/view/theme/_my_theme/information/newproducts.tpl并做了一些小改动
- 已将/catalog/controller/information/information.php复制到/catalog/controller/information/newproducts.php
- 在新文件中: --将类更新为:类控制器信息NewProducts扩展控制器 --将信息/信息的任何实例更新为信息/新产品
- 我甚至将/catalog/model/catalog/information.php复制到newproducts.php
$data['debugger'] = 'this is the newproducts controller';
及
发送到my live页面的调试是默认的信息控制器,Opencart甚至没有尝试使用newproducts控制器
这应该如何正确地完成 你不需要新的布局。。您已经创建了tpl文件,该文件很好。现在在新控制器的index.php末尾,您正在调用哪个tpl文件?
$data['debugger'] = 'this is the default information controller';