Welcome Guest, Not a member yet? Register   Sign In
CI 4.1.3 404 error for public resources
#2

You should create a assets folder in the public folder where index.php is in, then you can load your resource like below.

PHP Code:
<!-- Core theme CSS (includes Bootstrap)-->
 <
link href="<?= base_url('assets/vendor/bootstrap/css/bootstrap.min.css');?>" rel="stylesheet"/>
 <
link href="<?= base_url('assets/vendor/bootstrap/icons/font/bootstrap-icons.css');?>" rel="stylesheet"

Using base_url it will always go by it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
CI 4.1.3 404 error for public resources - by pc87 - 07-06-2021, 07:54 AM
RE: CI 4.1.3 404 error for public resources - by InsiteFX - 07-09-2021, 05:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB