unable to connect with CSS using base_URL and link_tag() |
I am trying to connect with my CSS using link_tag() but system is not connecting... no errors .. nothing happens
Code: <!DOCTYPE html> in controller PHP Code: <?php please help... Farooq
try <?= link_tag('/assets/css/bootstrap.min.css') ?>
Simpler is always better
(06-15-2017, 07:00 PM)natanfelles Wrote: https://codeigniter.com/user_guide/helpe...elper.html Thanks for the reply ... not done ![]()
The folowing way is working
<link rel="stylesheet" type="text/css" href="http://localhost/ciblog/assets/css/bootstrap.min.css"> But when try to get it dynamically.... it not works
Do you have your base url set in your config?
PHP Code: /*
Thanks Martin for the reply.
I did it but not resolved the issue. base_url = 'localhost/ciblog'
You need to add the ending slash / onto the base url
PHP Code: $config['base_url'] = 'localhost/ciblog/'; What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |