05-20-2008, 08:02 AM
[eluser]abmcr[/eluser]
[quote author="abmcr" date="1211195651"]
I find a bug in this page http://codeextinguisher.com/public_previ...e/edit/105
the calendar not appears correct... ;-)
[/quote]
The css is not loaded corretly because the function in the codextemplate.php is
and not insert the correct pah to js
it is a bug or it is need to manage the css template? In both case, i have created (!) a new function
and modified into the plugin of the date the
in
[quote author="abmcr" date="1211195651"]
I find a bug in this page http://codeextinguisher.com/public_previ...e/edit/105
the calendar not appears correct... ;-)
[/quote]
The css is not loaded corretly because the function in the codextemplate.php is
Code:
function css ($identifier, $file,$force=false){
if($force OR !in_array($identifier,$this->loaded_objects['css']))
$this->loaded_objects['css'][$identifier] = '<link rel="stylesheet" href="'.$file.'" type="text/css">'."\n";
}
it is a bug or it is need to manage the css template? In both case, i have created (!) a new function
Code:
function css_from_assets ($identifier, $file,$force=false){
if(!in_array($identifier,$this->loaded_objects['css']))
$this->loaded_objects['css'][$identifier] = '<link rel="stylesheet" href="'.$this->asset_folder.'css/'.$file.'" type="text/css">'."\n";
}
Code:
$CI->codextemplates->css('css-datepicker','ui.datepicker.css');
Code:
$CI->codextemplates->css_from_assets('css-datepicker','ui.datepicker.css');