Jump to content

Archived

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

sandstorm140

codeigniter Unable to load the requested file error

Recommended Posts

Hello!

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!

ADDITIONAL INFO:

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:
-PB_MVC
--application
--system
--themes
---default

 

Share this post


Link to post
Share on other sites

×
×
  • 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.