base_url() doesn't show, weird @__@ |
[eluser]solid9[/eluser]
I installed a new CodeIgniter into my site. I already configured the config.php Code: $config['base_url'] = 'http://sample.com/adminpro/'; And below is my controller Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); But when I call http://sample.com/adminpro/front/hello/ It doesn't display the base_url(), any help. weird.
[eluser]Aken[/eluser]
Did you load the URL helper? Do you have error displaying turned off?
[eluser]josepichu[/eluser]
you have to include the URL helper in the autoload config file
[eluser]solid9[/eluser]
Yeah I think I forgot to include the URL helper. Thanks for reminding me guys. I will try. |
Welcome Guest, Not a member yet? Register Sign In |