esedic
6/7/2014 - 8:10 AM

Inject data into a Joomla module position

Inject data into a Joomla module position

<?php
// Inject data from your component into the right module position
JFactory::getDocument()->setBuffer($data, 'modules', 'right');

// Note: Data will not be shown unless there are "real" modules present in position right