jquery - Flexslider not working with carabiner - codeigniter library -
there problem flexslider , codeigniter's carabiner library. combining js , css on website flexslider not being combined. if included seperately works fine. error having
$(...).flexslider not function
here doing carabiner not working.
$js = array( array('http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', '', true, false), array('js/jquery.flexslider-min.js', '', true, false) ); $this->carabiner->js($js);
if include flexslider script
<script type="text/javascript" src="/assets/js/jquery.flexslider-min.js"></script>
that works fine. guess may due type="text/javascript"
mentioned here
is there way can combine flexslider js other js files in carabiner ?
hi need set base uri in config check in carabiner.php config file find
//$config['base_uri'] = 'http://www.example.com/';
just remove comment , put site address. 2nd way can set carabiner config in controller
$config = array('base_uri'=>base_url()); $this->carabiner->config($config);
hope work you.
Comments
Post a Comment