SugarCRM 修正第二次加载模块时错误

1.修正了第二次加载模块时出错。
问题原因:问题不在加载模块中,而是在创建模块时。
   复制manifest.php文件时,将模板(modules\SimpleMod\manifest.php)更改了。
          在模板中'SimpleMod'这种变量是要在创建新模块时改新的。如'SimpleMod'变量应更新为新模块的名称。
解决方案:在modules\Builder\BuildModule.php 文件中
   1.在$xFileType = ".php"; 语句后写:$xPath = "cache/ModuleBuilder/"; 改变更新目标文件路径
   2.将此语名 copy  ("modules/SimpleMod/manifest.php", "cache/ModuleBuilder/manifest.php"); 剪切
   至上面 $xFileType = ".php"; 语句后,

原文地址:https://www.cnblogs.com/hailexuexi/p/1786629.html