SOLVED - $mainframe->addCustomHeadTag doesn't work

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
alex_funky_dj
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Dec 18, 2005 7:26 pm

SOLVED - $mainframe->addCustomHeadTag doesn't work

Post by alex_funky_dj » Thu Oct 25, 2007 2:20 pm

I'm making a simple component and want to include some JS & CSS to the header, here's my 1st lines of the component :

Code: Select all

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$head = "<script type="text/javascript" src="/js/bsn.AutoSuggest_2.1.3.js"></script>";
$head .= "<link rel="stylesheet" href="css/autosuggest_inquisitor.css" type="text/css" media="screen"/>";

$mainframe->addCustomHeadTag('$head');


and it doesn't work !!

-------------------
It was a problem with my code  !
Last edited by alex_funky_dj on Fri Oct 26, 2007 8:48 am, edited 1 time in total.

Post Reply