shraddha shraddha - 5 months ago 9
PHP Question

css Not applying in codeigniter

enter image description here

<link href="<?= base_url('asset/css/font-awesome.css');?>" rel="stylesheet" type="text/css"/>

I have applied css in a view file with head tag.
I am begginer in a codeigniter so,anyone have solutions for me.


You have misspelled bae_url() instead base_url(). Change it to

<link href="<?php echo base_url('assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css');?>">

and in APPPATH . 'config/config.php' set

$config['base_url'] = 'http://localhost/greenschool/';