Load joomla plugin on page

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
paulsimonrough
Joomla! Intern
Joomla! Intern
Posts: 78
Joined: Tue Feb 26, 2013 7:58 am
Contact:

Load joomla plugin on page

Post by paulsimonrough » Tue Sep 10, 2013 1:14 am

Hi I am creating a joomla extension that runs on separate php file (not a component)

I have successfully loaded the Joomla environment by using:

Code: Select all

define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'factory.php' );

$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
How do I now load all enabled plugins on the page? ie system, content plugins etc

Is there some code like :

Code: Select all

require_once ( jplugins...etc);
Google is not my friend today all I want to do is make sure the enabled plugins are running on my page...

Thanks for your help!
For UK based Joomla hosting visit https://uksmallbusinesswebhosting.co.uk/

User avatar
Ratmil
Joomla! Explorer
Joomla! Explorer
Posts: 318
Joined: Sat Dec 06, 2008 7:07 pm

Re: Load joomla plugin on page

Post by Ratmil » Mon Sep 23, 2013 1:53 pm

Isn't the easiest way to develop a component or a plugin?
What sense does it make to do something that runs in a separate file out of Joomla?


Locked

Return to “Joomla! 2.5 Coding”