We can use an absolute path to resources to link images/CSS/JavaScript from a view in CodeIgniter.

For Example :

<link rel = "stylesheet" type = "text/css" href = "<?php echo base_url(); ?>css/responsive.css">
<script type = 'text/javascript' src = "<?php echo base_url(); ?>js/jquery.js"></script>

BY Best Interview Question ON 13 Jan 2019

Suggest An Answer