API17

JModuleHelper::getLayoutPath: Difference between revisions

From Joomla! Documentation

m →See also: moving preparation
m clean up
Line 4: Line 4:
Get the path to a layout for a module.  
Get the path to a layout for a module.  


{{Description:JModuleHelper::getLayoutPath}}
{{subst:Description:JModuleHelper::getLayoutPath}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JModuleHelper::getLayoutPath|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public static function getLayoutPath (
public static function getLayoutPath (
Line 40: Line 38:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[API17:JModuleHelper::getLayoutPath|Other versions of JModuleHelper::getLayoutPath]]
* [[API17:JModuleHelper::getLayoutPath|Other versions of JModuleHelper::getLayoutPath]]
{{SeeAlso:JModuleHelper::getLayoutPath}}
{{subst:SeeAlso:JModuleHelper::getLayoutPath}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModuleHelper::getLayoutPath|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 15:54, 24 March 2017

Joomla 11.1 JModuleHelper::getLayoutPath

Description

Get the path to a layout for a module.

{{subst:Description:JModuleHelper::getLayoutPath}}

public static function getLayoutPath (
        $module
        $layout= 'default'
)
Parameter Type Default Description
$module string The name of the module
$layout string 'default' The name of the module layout. If alternative layout, in the form template:filename.
  • Returns string The path to the module layout
  • Defined on line 225 of libraries/joomla/application/module/helper.php
  • Since Joomla 11.1

See also

{{subst:SeeAlso:JModuleHelper::getLayoutPath}}

User contributed notes

<CodeExamplesForm />