Load Joomla liabrary files into module/plugin

jimport() is a core function of joomla and used to load joomla library files.

For example : jimport( ‘joomla.plugin.helper’ );

this syntax will load the file “helper.php” from the joomla liabrary path like : your_site\libraries\joomla\plugin
now you can use this library file functions like as follows :
// Import the user plugin group.
// Get the dispatcher.
$dispatcher = JDispatcher::getInstance();
// Trigger the form preparation event.
$results = $dispatcher->trigger(‘onContentPrepareForm’, array($form, $data));


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s