6

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 Jan 23 '15 at 14:32
  • 1
    Could you please add the correct answer below? It is for the benefit of others. Thanks! – miroxlav Jan 25 '15 at 18:43
10

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

| improve this answer | |

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.