I would like to know how to insert an external css file into a Codeigniter 3 view. I configured the $ autoload ['helper'] = array ('url'); I tried calling in the following ways:
<link rel="stylesheet" type="text/css" href="<?=site_url('application/views/css/main.css')?>">
<link rel="stylesheet" type="text/css" href="<?=site_url('css/main.css')?>">
I also tested using base_url (); but the results were the same. It prints the html with the correct path but is not applying the styles. If I click on this link inside the browser's source code viewer it redirects me to the codeigniter default 404.