Link not working in codeigniter, base_url() displaying “”http://::1” why?
If you create a link in codeigniter as like below
1 |
<a href="<?php echo base_url(); ?>/index.php/regstudent/registerstudent">Add Student</a> |
in some case above link will redirect to blank page and most of the case it will be look like as below
1 |
<a href="ttp://::1/index.php/regstudent/registerstudent">Add Student</a> |
To Solve this issue please add below line in your config.php $config[‘base_url’] = ‘http://localhost/yourfoldername/’; if it is blank above issue will… Read More »