shraddha shraddha - 2 years ago 123
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.

Answer Source

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/';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download