user3286692
user3286692

Reputation: 383

Check sugarcrm version in installer

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.

Upvotes: 1

Views: 1103

Answers (1)

Matthew Poer
Matthew Poer

Reputation: 1682

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.

Upvotes: 1

Related Questions