function display($tpl_name, $cache_id = null, $compile_id = null){ // var image_link_dir='/components/com_rbids/images/'; $doc = JFactory::getDocument(); $doc->addScriptDeclaration("var image_link_dir='". JURI::root().'components/'.APP_EXTENSION.'/images/' ."';"); parent::display($tpl_name, $cache_id = null, $compile_id = null); }