Actions

J1.5 talk

Plugin/Events/System

From Joomla! Documentation

The constructor function has some problem. I believe it is typo error.


class plgSystemExample extends JPlugin {

       /**
        ...
        */
       function plgSystemCache( &$subject, $config )
       {
               parent::__construct( $subject, $config );
        ...
       }
        ...
        ...

It should be like this.


class plgSystemExample extends JPlugin {

       /**
        ...
        */
       //function plgSystemCache( &$subject, $config )
       //         ^^^^^^^^^^^^^^
       function plgSystemExample( &$subject, $config )
       {
               parent::__construct( $subject, $config );
        ...
       }
        ...
        ...

onBeforeRender doesn't exist

I believe onBeforeRender doesn't actually exist. I can't find the trigger anywhere in the code. Can I delete that from the doc or am I missing something?