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() |
|
For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)
