php - Joomla plugin event not firing -



php - Joomla plugin event not firing -

i'm working on plugin work custom component developing joomla 3.3

however, basic code firing in event "onbeforecompilehead", trying update canonical info joomla 3.3 produces, taking of info array , resending after modifying info add together own information.

however when adding custom code according joomla programming guide (for starters) not see code running nor add together head info needed test.

my code follows:

<?php // no direct access defined( '_jexec' ) or die( 'restricted access' ); jimport('joomla.plugin.plugin'); class plgsystemcustomplugin extends jplugin { function onbeforecompilehead() { if ($this->params->get('site_url')) { $document = jfactory::getdocument(); $headdata = $document->getheaddata(); $headdata['metatags']['standard']['revised'] = $this->params->get('site_url'); $document->setheaddata($headdata); } } }

i've taken if statement out, not hitting point. i've added basic php mailer phone call send test email if function nail @ all.

the plugin installed "system" plugin. loading class framework, able cause syntax errors. i've checked , dispatcher in joomla's core loading event.

does have insight going on here?

thanks!

i've figured out. language file not using proper name plugin, , work if class name like:

class plgsystem[plugin_name] { }

i have working expected.

thanks!

php joomla joomla-extensions joomla3.3

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -