$this->config->set_item('base_url', 'http://www.xyz.com/demo/admin');
<link href='<?php echo base_url(); ?>assets/css/uploadify.css' rel='stylesheet' type="text/css">
stylesheet is loading but style is not applying for admin panel of codeigniter?
-
11-07-2023 - |
Pregunta
Stylesheet is loading for codeigniter adminpanel.
But my style css file is not applying for adminpanel.
I have added stylesheet as follows and the adminpanel url is http://www.xyz.com/demo/admin.
<link href='<?php echo base_url(); ?>assets/css/uploadify.css' rel='stylesheet' type="text/css">
Solución
Otros consejos
You need to load url helper to use url function
$this->load->helper('url');
<link href='<?php echo base_url(); ?>/assets/css/uploadify.css' rel='stylesheet' type="text/css">
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow