Can You Please Answer What Is The Difference Between the following functions:

JLoader::import and JLoader::register

which belong in the loader.php file?

  • 3
    If you've found the answer to your question, please add it as a proper answer below ;)
    – Lodder
    Commented Jan 23, 2015 at 14:32
  • 1
    Could you please add the correct answer below? It is for the benefit of others. Thanks!
    – miroxlav
    Commented Jan 25, 2015 at 18:43

1 Answer 1


Jloader::import Will include the whole specified file into our script and do some joomla specific naming conventions -> where as JLoader::register Will allows us To Include only needed class from specified packeg file and it also uses php's auto-loader that speeds up the app and save memory

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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