O'Reilly logo

Mastering Joomla! 1.5 Extension and Framework Development by Chuck Lanham, James Kennard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Loading plugins

Before a plugin can respond to an event, the plugin must be loaded. When we normally load plugins we load a group at a time. To do this we use the static JPluginHelper class.

The following example shows how we would load plugins from the group boxoffice:

JPluginHelper::importPlugin('boxoffice');

It is essential that we import plugins before firing events that relate to them. There is one time when this does not apply; we never need to import system plugins. System plugins are imported irrespective of the request that is being handled. It is, however, unlikely that we would ever need to trigger a system event because Joomla! should handle all system events.

So where and when do we import plugins? For starters it does not matter if we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required