references:joomla.framework:application:jmodulehelper-getmodulegetModule
Get a module by name Syntaxobject &getModule ( $name )
ExamplesExample $module = &JModuleHelper::getModule('banners'); echo JModuleHelper::renderModule($module); The example might render the following HTML snippet: Example output <div class="bannergroup"> <div class="banneritem"> custom banner text <div class="clr"></div> </div> </div> This is essentially the same as using <jdoc:include type="module" name="banners" style="none" /> in the site template. |


