API17

JModuleHelper::getLayoutPath: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
m preparing for archive only
 
(5 intermediate revisions by 2 users not shown)
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}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JModuleHelper::getLayoutPath|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JModuleHelper::getLayoutPath ($module, $layout= 'default')
public static function getLayoutPath (
        $module
        $layout= 'default'
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 32: Line 30:
|-
|-
|}
|}
===Returns===
* '''Returns''' string The path to the module layout
string The path to the module layout
* '''Defined''' on line 225 of libraries/joomla/application/module/helper.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/module/helper.php (line 225)
* see source code in [[jplatform:application/module/helper.php#cl-225|BitBucket]]
===Referenced by===
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JModuleHelper::getLayoutPath source code''' on [[jplatform:application/module/helper.php#cl-217|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JModuleHelper::getLayoutPath|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JModuleHelper|JModuleHelper]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[JModuleHelper/11.1|JModuleHelper]]
* [[API17:JModuleHelper::getLayoutPath|Other versions of JModuleHelper::getLayoutPath]]
* [[JModuleHelper::getLayoutPath|Other versions of this method]]
 
{{SeeAlso:JModuleHelper::getLayoutPath}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JModuleHelper::getLayoutPath
category=JModuleHelper::getLayoutPath
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JModuleHelper]][[Category:JModuleHelper::getLayoutPath]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:28, 25 March 2017

Joomla 11.1 JModuleHelper::getLayoutPath

Description

Get the path to a layout for a module.


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


User contributed notes

Code Examples