CodeIgniter - base_url problem


Recently I started developing an application with the CodeIgniter framework and I ran into the following problem. The method base_url() returns something that is not the default path of my application and this has brought me certain problems. What the method returns to me is http://::1/wokspace when it should return http://localhost:8080/wokspace .

File config.php $config['base_url'] = ''

I hope alguin can help me solve my problem.

asked by alexander zevallos 28.05.2016 в 23:21

1 answer


link is an equivalent in IPv6 to what link it's in IPv4

In the last versions of CI it is better not to leave the base_url blank, it would be better if you put the local host. In your case it would be:

$config['base_url'] = 'http://localhost:8080/wokspace'
answered by 30.05.2016 / 04:20