Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top