So in my 3.1.1 version I am trying to develop a plugin in accordance to this tutorial: http://docs.joomla.org/J3.x:Creating_a_ ... for_Joomla
I created my xml and php file. Plugin installs fine and I have activated it from Extension Manager. All I am trying to do for now is to echo hello world on onAfterRoute event since it is "global system event triggered on every page load" according to: http://docs.joomla.org/Plugin/Events/System
So now I should see hello world in source for any page on my website right? I don't...
My code:
Code: Select all
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class plgOffSiteRef extends JPlugin
{
function onAfterRoute()
{
echo 'HELLO WORLD!';
}
}
?>