JModuleHelper: Difference between revisions
From Joomla! Documentation
No edit summary |
m clean up |
||
| Line 1: | Line 1: | ||
[[JModuleHelper]] is a static helper class which provides functionality to handle modules. | |||
===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> | ||
{{subst:SeeAlso:JModuleHelper}} | |||
{{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 />