Back to CMSApplication class

Method getTemplate

public mixed
getTemplate
(mixed $params = false)
Gets the name of the current template.
Parameters
  • bool $params An optional associative array of configuration settings
Returns
  • mixed System is the fallback.
Since
  • 3.2

Method getTemplate - Source code

/**
 * Gets the name of the current template.
 *
 * @param   boolean  $params  An optional associative array of configuration settings
 *
 * @return  mixed  System is the fallback.
 *
 * @since   3.2
 */
public function getTemplate($params = false)
{
    if ($params) {
        $template = new \stdClass();
        $template->template = 'system';
        $template->params = new Registry();
        $template->inheritable = 0;
        $template->parent = '';
        return $template;
    }
    return 'system';
}