CSS and JS won't load, IE trace says "Aborted" - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: CSS and JS won't load, IE trace says "Aborted" (/showthread.php?tid=66794) |
CSS and JS won't load, IE trace says "Aborted" - dannychase2004 - 12-04-2016 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 RE: CSS and JS won't load, IE trace says "Aborted" - dimasedu - 12-04-2016 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. |