opencart控制器变量在视图中

时间:2018-02-15 13:05:21

标签: php opencart opencart2.x

我想在/controller/customer/customer.php编辑器中添加自定义变量,所以我添加了

 error: expected primary-expression before ‘>’ token
   return cs->append<Component>( h.index, std::forward<Args>( args )... );

error: expected binary operator before ‘)’ token
   return cs->append<Component>( h.index, std::forward<Args>( args )... );

所以基本上我应该可以在/view/../customer/customer_form.tpl中使用$ entry_limit,因为该控制器绑定到这个.tpl文件(选中它),但问题是它给出了错误:

$data['entry_limit'] = $this->language->get('entry_limit');

我确信我已经编辑了所有langs并且lang变量就在那里,所以得到它没有问题... 我该怎么办?

OC版:2.1

0 个答案:

没有答案