Difference between revisions of "JView::loadTemplate"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JView::loadTemplate|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JView::loadTemplate|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function loadTemplate ($tpl=null) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 25: | Line 24: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' string The output of the the template script. | |
− | string The output of the the template script. | + | * '''Defined''' on line 528 of libraries/joomla/application/component/view.php |
− | |||
− | libraries/joomla/application/component/view.php | ||
− | |||
− | |||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JView::loadTemplate source code''' on [[jplatform:application/component/view.php#cl-520|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JView/11.1|JView]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]] | ||
+ | * [[JView::loadTemplate|Other versions of JView::loadTemplate]] | ||
+ | {{SeeAlso:JView::loadTemplate}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JView::loadTemplate|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JView::loadTemplate|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 46: | Line 43: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JView]][[Category:JView::loadTemplate]]</noinclude> | <noinclude>[[Category:JView]][[Category:JView::loadTemplate]]</noinclude> |
Revision as of 20:57, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JView::loadTemplate[edit]
Description[edit]
Load a template file -- first look in the templates folder for an override.
Template:Description:JView::loadTemplate [Edit Descripton]
public function loadTemplate ($tpl=null)
Parameter | Type | Default | Description |
---|---|---|---|
$tpl | string | null | The name of the template source file ... automatically searches the template paths and compiles as needed. |
- Returns string The output of the the template script.
- Defined on line 528 of libraries/joomla/application/component/view.php
See also[edit]
JView::loadTemplate source code on BitBucket
Class JView
Subpackage Application
- Other versions of JView::loadTemplate
Template:SeeAlso:JView::loadTemplate [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />