Php 如何在prestashop 1.6中重写AdminEmployeesController
我想覆盖AdminEmployeesController,以便在自动创建员工帐户后向其发送电子邮件。 当我重写这个类时,我得到: 分析错误:语法错误,意外的“类型”(T_字符串)Php 如何在prestashop 1.6中重写AdminEmployeesController,php,module,overriding,prestashop,prestashop-1.6,Php,Module,Overriding,Prestashop,Prestashop 1.6,我想覆盖AdminEmployeesController,以便在自动创建员工帐户后向其发送电子邮件。 当我重写这个类时,我得到: 分析错误:语法错误,意外的“类型”(T_字符串) 我在网上搜索了很多时间,但还没有找到解决方案。我删除了在www/override中覆盖的文件 为了恢复默认行为,我删除了/cache/class_index.php文件 现在一切正常您的php代码中有语法错误。你的代码是什么?我刚刚扩展了类AdminEmployeesController:class AdminEmpl
我在网上搜索了很多时间,但还没有找到解决方案。我删除了在www/override中覆盖的文件 为了恢复默认行为,我删除了/cache/class_index.php文件
现在一切正常您的
php
代码中有语法错误。你的代码是什么?我刚刚扩展了类AdminEmployeesController:class AdminEmployeesController扩展了AdminEmployeesController{}你的文件路径和名称是什么?请复制并粘贴完整的代码,因为php
code.path:modules/my_module/override/controllers/admin/AdminEmployeesController.php中存在错误。我已经测试过了,没有在重写类中放入任何代码