references:joomla.framework:document:jdocument-addstylesheetTable of Contents
addStyleSheet
Adds a linked stylesheet to the page. Syntaxvoid addStyleSheet ( $url, $type, $media, $attribs )
ExamplesThis example adds a link to a stylesheet in the head block of the current page. Example global $mainframe; $document = &JFactory::getDocument(); $document->addStyleSheet( JURI::base() . 'templates/rhuk_milkyway/css/template.css', 'text/css', null, array( 'id' => 'StyleSheet' ) ); Might add the following code to the head block of the current page: Result <link rel="stylesheet" href="http://127.0.0.1/joomla15/templates/rhuk_milkyway/css/template.css" type="text/css"id="StyleSheet" /> |


