Welcome Guest, Not a member yet? Register   Sign In
CSS and JS won't load, IE trace says "Aborted"
#1

All,

I've just installed Codeigniter, and have my first project ready to go. It runs, but now having trouble incorporating any javascript or CSS into the view. If I hit F12 in firefox, it says "Aborted". The path looks right:

The code:
Base URL: <?php echo base_url("assets/css/bootstrap.css"); ?>

Yields:
Base URL: http://localhost/assets/css/bootstrap.css

In the view, I have:
<head>
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/bootstrap.css" />
</head>

In my Athlete controller, I have:
       $data = <cut>
       $this->load->view('athletes/index', $data);

In the F12 screen under Network, the URL shows correct for the location of the CSS.

Here's my routes file:
$route['default_controller'] = 'Athlete';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

What am I doing wrong here? If it's getting the correct location, could routing be messing it up?

Thanks,
Dan Chase
Reply


Messages In This Thread
CSS and JS won't load, IE trace says "Aborted" - by dannychase2004 - 12-04-2016, 03:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB