[英]prestashop module not ready for php 7
I've a problem with module that is OK with PHP 5 but not with PHP 7... 我的模块有问题,PHP 5可以,但PHP 7却没有。
I know thats is this line which is in cause: 我知道那是这一行的原因:
$this->$_GET ['load_function']($params);
I put here a sample of the code: 我在这里放了一个代码示例:
$params = array('method' => $_GET ['load_function'],'reload_after'=>Tools::getValue('reload_after'),'js_callback'=>Tools::getValue('js_callback')); $this->_preLoadFunctionProcess($params); $this->$_GET ['load_function']($params);
Is there someone which could help me to change this code and that will be OK with PHP7. 是否有人可以帮助我更改此代码,PHP7可以解决。 Thank you... 谢谢...
正如PHP Doc所说,这些方法可能有效:
$this->{$_GET['load_function']}($params);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.