Im using bootstrap as template in my project. When Im trying to access bootstrap in codeigniter, the page cannot load css and javascript. I have added url in autoload.php $autoload['helper'] = array('url','form','html');
and link in the template and css file like this <link href="<?php echo base_url();?>assets/member/plugins/chartist-js/dist/chartist.min.css" rel="stylesheet">
here is the directory where css and the other file exsist : https://www.dropbox.com/s/mk8tmylkbl106ep/gmbr.png?dl=0
Try to add this in your controller
$this->load->helper('url');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.