$ecommerce_classes = array( 'Ecommerce\\Core\\Model_Customer' => __DIR__ . '/classes/model/customer.php', ); \Autoloader::add_classes($ecommerce_classes); // Alias all of the ecommerce core classes into the ecommerce // namespace to give app classes a chance to override them array_map(function($class){ $parts = explode('\\', $class); $class_name = array_pop($parts); if( ! class_exists('\Ecommerce\\'.$class_name)) { \Autoloader::alias_to_namespace($class, 'Ecommerce'); } }, array_keys($ecommerce_classes));
It looks like you're new here. If you want to get involved, click one of these buttons!