如果我在主要模块(modules / Leads / lead.php)中编写了create_export_query(),我可以自定义
但我希望这应该是升级安全代码
我们能否在自定义路径中而不是在lead.php中添加create_export_query()方法
如果可以的话,除了主模块位置,我们还可以在哪个文件中添加此功能?
custom / modules / Leads / lead.php可以工作吗?
谢谢 纳仁
答案 0 :(得分:0)
custom / modules / Leads / lead.php在将beanFile位置更改为主bean之前不起作用。
有两种方法可以做到这一点。
1) Make an extension, custom/Extension/application/Ext/Include, make
a new file CustomLeads.php, put your custom BeanFile location here
for lead module.
2) As export is certainly an action,you may create a custom
controller,ie custom/modules/Leads/controller.php, create a new
function action_export, put your custom code there.
不建议使用Suite核心模块的替代bean,因为它可能随时破坏整个系统。您应该选择#2。