How come I have to manually include JTable, JModel, etc? Is this for security reasons or just a missing feature?

Edit: Top google blog post about it: http://dongilbert.net/php-autoloading-and-joomla/


This is just a missing feature for sure. To backup this statement:

  • Autoloading would not be so spread allover the world if it would lead to security issues.
  • Joomla looking ahead for PSR-4 autoloading at 4.x branch

And If you want it now - look at this PR. If you'll register this loader function - you'll be able to autoload everything. Check description of PR.

  • Thank you. Are you saying this function could be used in Joomla 3.6? But that would be quite brutal, right? Jan 18 '17 at 20:51
  • Yes, actually this function can be used even at 3.0 I believe. Brutal? Well you can say so. But it's more like going ahead a little bit: using in 2017 something that would be used in 2018 by majority. There could be some issues if you'll be to hard on using new approach with old code only, but in a major situations - it would work right. Feel free to contact me if there would be any issues with this code.
    – Alexandr
    Jan 18 '17 at 22:05
  • Also I'd like to here as many as possible opinions on github.com/joomplace/JooYii - new life to Joomla development as designed
    – Alexandr
    Jan 18 '17 at 22:07
  • Thanks for your answers. I checked your JooYii web site, but I think it should contain more information about what the difference is between it and vanilla Joomla. A code example, use-case, improvement etc could be provided. Jan 19 '17 at 9:19
  • Thanks, for response. Working on it, but not quite there yet )
    – Alexandr
    Jan 19 '17 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.