Actions

JFactory/getTemplate

From Joomla! Documentation

Revision as of 14:54, 23 November 2008 by Chris Davenport (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns a reference to the global template object, only creating it if it doesn't already exist. The object returned will be of type JTemplate.

This method is retained for backwards compatibility only. The patTemplate templating system is no longer used.

Syntax

object JTemplate getTemplate()

Example

In this example, the global template object is retrieved.

$template =& JFactory::getTemplate();

See also