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


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"); ?>

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

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

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?

Dan Chase

because the f12 key is already used for developer tools. you can find another key to execute your code. Like F8 key is empty and F7 empty also etc.

Theme © iAndrew 2016 - Forum software by © MyBB