references:joomla.framework:document:jdocumenthtml-addfaviconTable of Contents
addFavicon
Adds a shortcut icon (favicon). This adds a link to the icon shown in the favorites list or on the left of the url in the address bar. Some browsers display it on the tab, as well. Syntaxvoid addFavicon ( $href, $type, $relation )
ExamplesSet the favourite icon to use for the document. Example global $mainframe; $document =& JFactory::getDocument(); $document->addFavicon( "http://dev.joomla.org/images/favicon.ico" ); adds the following code to the head block: Result <link href="http://dev.joomla.org/images/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |


