Loading…

How to link images/CSS/JavaScript from a view in codelgniter?

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>

Suggest An Answer

No suggestions avaliable!

Latest post from CodeIgniter Interview Questions

Ask Question