API17

Difference between revisions of "JView::loadTemplate"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Load a template file -- first look in the templates folder for an override.  
 
Load a template file -- first look in the templates folder for an override.  
  
{{Description:JView::loadTemplate}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JView::loadTemplate|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JView::loadTemplate ($tpl=null)
+
public function loadTemplate ($tpl=null)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 25: Line 22:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''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
===Defined in===
 
libraries/joomla/application/component/view.php (line 551)
 
* see source code in [[jplatform:application/component/view.php#cl-551|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JView::loadTemplate source code''' on [[jplatform:application/component/view.php#cl-520|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JView::loadTemplate|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JView|JView]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[JView/11.1|JView]]
+
* [[API17:JView::loadTemplate|Other versions of JView::loadTemplate]]
* [[JView::loadTemplate|Other versions of this method]]
+
 
{{SeeAlso:JView::loadTemplate}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JView::loadTemplate
 
category=JView::loadTemplate
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JView]][[Category:JView::loadTemplate]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:57, 24 March 2017

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.

Joomla 11.1 JView::loadTemplate[edit]

Description[edit]

Load a template file -- first look in the templates folder for an override.


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]


User contributed notes[edit]

Code Examples[edit]