Jump to content

codeigniter Unable to load the requested file error


Recommended Posts


I have the following code in my controller:

$this->parser->parse('themes/default/index.php', $data);

And getting error:


Unable to load the requested file: themes/default/index.php

However, when I type in the same url into the address bar, the page loads fine.

I can't for the life of me figure out what's going on.

Thanks in advance!


Configs & Helpers are set as:
//Commented lines I've tried.
//$config['base_url'] = '';
//$config['base_url'] = 'http://localhost';
//$config['base_url'] = 'http://localhost/';
//$config['base_url'] = 'http://localhost/PB_MVC';
$config['base_url'] = 'http://localhost/PB_MVC/';
$autoload['helper'] = array('url');

My folder structure is:


Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.