LoaderNamespacing standard.A class named ClassFile is located in class/file It can be : class/file.php Respecting the namespacing means respecting the class name according to the file structure.
Joomla exceptions:The generated component contains various exceptions.
Coding conventionsThe class name is singularisated : Class prefix can search both in 'class' and 'classes' directories Example : ClassIris
Joomla issue (still in 3.2)The namespacing is not working correctly in the discover function: Even with 'recursive', a class located in class / file / upload will be registered as ClassUpload instead of ClassFileUpload. Cook is offering an override to the Joomla loader and the discover function. VERY IMPORTANT for Joomla 1.6 Or by alternative (not recomendated) :
Dump the loader.Your component handle a small script to dump in HTML the JLoader object. use: MycomponentClassLoader::dump() |
|