CodeIgniter Forums
site_url() & base_url() not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: site_url() & base_url() not working (/thread-52716.html)



site_url() & base_url() not working - El Forum - 06-23-2012

[eluser]the_unforgiven[/eluser]
Using 2.1.1 CI version
Code:
<?php echo base_url(); ?>
&
<?php echo site_url(); ?>
Doesn't work for some reason even though i have set it:
Code:
$config['base_url'] = 'http://locahost/mysite/';

Can anyone tell me why this is has 2.0.1 worked!


site_url() & base_url() not working - El Forum - 06-23-2012

[eluser]the_unforgiven[/eluser]
Sorted relaise after i posted i'd taken away index.php from config and didnt have htaccess so works now!