문제

I have 2 similar files version file is custom/modules/Contacts/views/view.list.php . 1 file is supported for all sugarcrm versions less than 6.5 Another for version greater than 6.5. I want my installer to check version & copy file according to the version.

도움이 되었습니까?

해결책

Have a read of Jason Eggers and SugarOutfitter's article How to Package Version Specific Code - it's an excellent how-to on packaging views and files for specific SugarCRM versions. It involves clever use of $GLOBALS['sugar_flavor'] within the manifest's copy directive.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top