Advertisement
theitd

Joomla - Trigger Plugin

Nov 24th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $article = new stdClass;
  2. $article->text = $text;
  3.  
  4. $output = JResponse::getBody();
  5.  
  6. // add more to parameters if needed
  7. $params = new JObject;
  8.  
  9. // Note JDispatcher is deprecated in favour of JEventDispatcher in Joomla 3.x however still works.
  10. JPluginHelper::importPlugin('content');
  11. $dispatcher = JEventDispatcher::getInstance();
  12. $dispatcher->trigger('onContentPrepare', array('com_custom', , &$params, 0));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement