/** * Get a template object * * Returns a reference to the global {@link JTemplate} object, only creating it * if it doesn't already exist. * * @access public * @return object JTemplate */ function &getTemplate() { static $instance; if (!is_object($instance)) { $instance = JFactory::_createTemplate(); } return $instance; }