Welcome Guest, Not a member yet? Register   Sign In
css are not loading
#10

Guys I'm having the same problem.

My code in my view file.
<link rel="stylesheet" href="<?= base_url('bootstrap/css/bootstrap.min.css'); ?>" type="text/css">

The bootstrap assets are in a folder called bootstrap at the same level as the application folder.

/path/to/web/root/
├── application/
└── views/
├── templates
├── header.php
├── footer.php
├── system/
├── bootstrap/

rendered output
<link rel="stylesheet" href="http://localhost/codeigniter/bootstrap/css/bootstrap.min.css" type="text/css">

I've tried different locations within the project, nesting it in the application folder and under views but with the same non result even thought the path always seems to correct in relation to the local folder structure. Trying to access the css files directly through the browser generates a 404?

If I link to external css files they load fine.

What esoteric thing could be going on here? I've spent a nearly a day on this and its driving me insane.

I've got myself ready for a massive face palm.

TIA
Reply


Messages In This Thread
css are not loading - by davy_yg - 05-05-2018, 06:30 AM
RE: css are not loading - by jreklund - 05-05-2018, 06:40 AM
RE: css are not loading - by Paradinight - 05-05-2018, 06:41 AM
RE: css are not loading - by davy_yg - 05-05-2018, 07:04 AM
RE: [SOLVED] css are not loading - by davy_yg - 05-06-2018, 08:52 AM
RE: [SOLVED] css are not loading - by BobM - 05-07-2018, 08:46 AM
RE: [SOLVED] css are not loading - by jreklund - 05-07-2018, 09:16 AM
RE: [SOLVED] css are not loading - by davy_yg - 05-15-2018, 07:31 PM
RE: css are not loading - by InsiteFX - 05-16-2018, 03:02 AM
RE: css are not loading - by Amonza - 06-12-2018, 08:33 PM
RE: css are not loading - by Amonza - 06-12-2018, 10:12 PM
RE: css are not loading - by InsiteFX - 06-13-2018, 03:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB