Reputation: 1
I am working on a practice project on ci.but the base url method returns [::1]/project name/ instead of localhost/project name/, and it's happening only when another function called. Otherwise it return localhost/project name/. And when I configure the base url but it's not working.
Upvotes: 0
Views: 157
Reputation: 158
It's because of your base_url is empty.
In application/config/config.php
$config['base_url'] = 'http://localhost/project_name';
Upvotes: 1