Quick Tip: PSR-0 Namespaces in Sugar 7
If you want to use namespaces following the PSR-0 standard for your custom code, it is now possible with the SugarAutoLoader in sugar7. Now you don’t have to insert require statements all over the place.
require_once('include/utils/autoloader.php'); SugarAutoLoader::addNamespace('Fbsg\', 'custom/include/Fbsg');
Sugar’s autoloader will now map requests for the class FbsgExampleTest to the file “custom/include/Fbsg/Example/Test.php”.
Related Blog Posts
Rankings season is upon us with March Madness right around the corner. It’s been another year...Read More
SugarCRM Inc., the company that helps global organizations build better business relationships, has named Faye Business...Read More
Forrester defines the customer journey as the series of interactions between a customer and a company...Read More