Actions

API16

Difference between revisions of "JModuleHelper"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JModuleHelper}} ===Defined ...)
 
 
Line 27: Line 27:
 
|Get the path to a layout for a module
 
|Get the path to a layout for a module
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.application.module.helper' );</source>
 
<source lang="php">jimport( 'joomla.application.module.helper' );</source>

Latest revision as of 04:57, 30 March 2010

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] JModuleHelper is a static helper class which provides functionality to handle modules.

Contents

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' );

[Edit See Also] SeeAlso:JModuleHelper

Examples

<CodeExamplesForm />