JApplication/getTemplate
From Joomla! Documentation
< API16:JApplicationRevision as of 17:35, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Gets the name of the current template.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<n...)
Revision as of 17:35, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Gets the name of the current template.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<n...)
The "API16" 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.
Description[edit]
Gets the name of the current template.
Template:Description:JApplication/getTemplate
Syntax[edit]
getTemplate($params=false)
Parameter Name | Default Value | Description |
---|---|---|
$params | false |
Returns[edit]
string
Defined in[edit]
libraries/joomla/application/application.php
Importing[edit]
jimport( 'joomla.application.application' );
Source Body[edit]
public function getTemplate($params = false)
{
if($params)
{
$template = new stdClass();
$template->template = 'system';
$template->params = new JParameter();
}
return 'system';
}
[Edit See Also] Template:SeeAlso:JApplication/getTemplate
Examples[edit]
<CodeExamplesForm />