This is common error,that you may get if you didn't set the
So you should go to application/config/config.php and set your base url, below is an example:
Code:
$config['base_url'] = '';
Code:
$config['base_url'] = 'http://localhost/yourproject/';