Call or load any Joomla model to controller, other modules or plugin

Here’s a short version: first, load model helper second, import the model, adjust with your own component, first parameter is the filename without .php third, create new instance. in this case, the class name is mcsmemberModelRenewal now you can use the model, ie: happy coding!

Include Joomla core functionality in external PHP file

Once I need to have Joomla core class in external files, answer can be found here. To repeat myself, here’s minimum code required to have Joomla functionality in our own file. <?php //define constant define( ‘_JEXEC’, 1 ); define( ‘DS’, DIRECTORY_SEPARATOR );   //you need…