这里是文件系统/engine/Controller.php中丢失的数据的各个部分。
if (file_exists(DIR_TEMPLATE . $this->template)) {
extract($this->data);
/* Here found header.tpl, media.tpl(my module),
column_left.tpl(this show my module), column_right.tpl,
language.tpl, footer.tpl */
我正在为opencart构建一个脚本,它将在其中发送电子邮件。它不是一个扩展,它是一个单独的面板。
我在opencart中添加了一个选项,用户可以在其中启用或禁用此功能。问题是我无法将opencart中的设置放入我的脚本中。
举个例子,我的php脚本中有以下代码
if ($config->get('sendemails_status')) {
$store_id = $config->get('config_store_id');
}
当我运行该代码时,我得到以下错误
Call to a member function get() on a