API16

JModuleHelper: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
[[JModuleHelper]] is a static helper class which provides functionality to handle modules.
<nowiki>[</nowiki>[[Description:JModuleHelper|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JModuleHelper}}


===Defined in===
===Defined in===
Line 31: Line 28:
<source lang="php">jimport( 'joomla.application.module.helper' );</source>
<source lang="php">jimport( 'joomla.application.module.helper' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModuleHelper|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JModuleHelper}}
</span>
{{SeeAlso:JModuleHelper}}


===Examples===
===Examples===

Revision as of 14:15, 24 March 2017

JModuleHelper is a static helper class which provides functionality to handle modules.

Defined in

libraries/joomla/application/module/helper.php

Methods

Method name Description
getModule Get module by name (real, eg 'Breadcrumbs' or folder, eg 'mod_breadcrumbs')
getModules Get modules by position
isEnabled Checks if a module is enabled
renderModule Render the module.
getLayoutPath Get the path to a layout for a module

Importing

jimport( 'joomla.application.module.helper' );


{{subst:SeeAlso:JModuleHelper}}

Examples

<CodeExamplesForm />