-1

I've just uploaded a web project using PHP Codeigniter in 000webhost.com and works fine.

But there is a problem though. The function base_url() is not working.

Why?

PhpNewbie
  • 53
  • 4

1 Answers1

0

You need to load the url helper in your controller

$this->load->helper('url')

Another better way is to autoload the helper. For this edit your config/autoload.php.

Sudhir Mishra
  • 578
  • 2
  • 16