Actions

J1.5 talk

Plugin/Events/System

From Joomla! Documentation

Revision as of 08:42, 27 August 2013 by Wilsonge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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?