Url helper |
Hi,
I use Codeigniter Version 3.1.6 Here is my bootstrap navbar: Code: <nav class="navbar navbar-expand-lg navbar-light bg-light"> Don't know but the links under Home and About are not working correctly. Please help me. Thanks. Regards
You should use site_url here.
PHP Code: <a href="<?php echo site_url(); ?>">Home</a> https://www.codeigniter.com/user_guide/h...l#site_url
This is the output with "echo"
http://localhost/blog/localhost/blog and without "echo" http://localhost/blog If I click on About it shows me a wrong URL under Home |
Welcome Guest, Not a member yet? Register Sign In |