您将自定义入口点定义放在哪里? [英] Where do you place your custom entry point definitions?
问题描述
我在这个文件中添加了我所有的自定义入口点:\custom\Extension\application\Ext\EntryPointRegistry\customEntryPoint.php
I add all my custom entrypoints in this file: \custom\Extension\application\Ext\EntryPointRegistry\customEntryPoint.php
有没有更好的方法或地方来处理这个问题?
Is there a better way or place to handle this?
推荐答案
根据 6.5 文档.完成快速修复和重建后,custom/Extension/application/Ext/EntryPointRegistry/中的所有文件都会编译到文件 custom/application/Ext/EntryPointRegistry/entry_point_registry.ext.php 中.
Your location is the recommended location as per the 6.5 documentation. All of the files within custom/Extension/application/Ext/EntryPointRegistry/ are compiled into the file custom/application/Ext/EntryPointRegistry/entry_point_registry.ext.php when a Quick Repair and Rebuild is done.
当您使用 SuiteCRM 标记此内容时,我假设您使用的是他们的 6.5 CE 分支.但是,如果您想在 SugarCRM 的更高版本 (7.7+) 中使用您的代码,请注意他们已经注意到他们的意图 在不久的将来弃用入口点,以支持为其 REST API (v10) 扩展端点".
As you've tagged this with SuiteCRM, I assume you're using their fork of the 6.5 CE. However, if you want to use your code with later versions (7.7+) of SugarCRM, take note that they have noted their intention to deprecate Entry Points in the near future in favour of extending "Endpoints" for their REST API (v10).
这篇关于您将自定义入口点定义放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!