english/libraries/joomla/document/html/html.php
/**
	 * Load a template file
	 *
	 * @param   string  $template  The name of the template
	 * @param   string  $filename  The actual filename
	 *
	 * @return  string  The contents of the template
	 *
	 * @since   11.1
	 */
Load a template file
@param   string  $template  The name of the template
@param   string  $filename  The actual filename

@return  string  The contents of the template


Load a template file @param string $template The name of the template @param string $filename The actual filename @return string The contents of the template
protected function _loadTemplate($directory, $filename)
	{
		$contents = '';
		if (file_exists($directory . '/' . $filename))
		{
			$this->_file = $directory . '/' . $filename;
			ob_start();
			require $directory . '/' . $filename;
			$contents = ob_get_contents();
			ob_end_clean();
		}
		$path = $directory . '/';
		$dirs = array($path, JPATH_BASE . '/');
		foreach ($dirs as $dir)
		{
			$icon = $dir.'favicon.ico';
			if (file_exists($icon))
			{
				$path = str_replace(JPATH_BASE . '/', '', $dir);
				$path = str_replace('\\', '/', $path);
				$this->addFavicon(JURI::base(true).'/'.$path.'favicon.ico');
				break;
			}
		}
		return $contents;
	}
protected function _loadTemplate ( $ directory , $ filename ) { $ contents = '' ; if ( file_exists ( $ directory . '/' . $ filename ) ) { $ this -> _file = $ directory . '/' . $ filename ; ob_start ( ) ; require $ directory . '/' . $ filename ; $ contents = ob_get_contents ( ) ; ob_end_clean ( ) ; } $ path = $ directory . '/' ; $ dirs = array ( $ path , JPATH_BASE . '/' ) ; foreach ( $ dirs as $ dir ) { $ icon = $ dir . 'favicon.ico' ; if ( file_exists ( $ icon ) ) { $ path = str_replace ( JPATH_BASE . '/' , '' , $ dir ) ; $ path = str_replace ( '\\' , '/' , $ path ) ; $ this -> addFavicon ( JURI :: base ( true ) . '/' . $ path . 'favicon.ico' ) ; break ; } } return $ contents ; }
Load a template file
 @param   string  $template  The name of the template
 @param   string  $filename  The actual filename
Load a template file @param string $template The name of the template @param string $filename The actual filename
//		$component	= JApplicationHelper::getComponentName(); // Check to see if we have a valid template file // Store the file path //get the file content // Try to find a favicon by checking the template and root folder