Sumit Tiwari
Sumit Tiwari

Reputation: 1

Base url method in ci

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

Answers (1)

Hashan
Hashan

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

Related Questions