sandstorm140 Posted May 30, 2013 Share Posted May 30, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/278603-codeigniter-unable-to-load-the-requested-file-error/ Share on other sites More sharing options...
sandstorm140 Posted May 31, 2013 Author Share Posted May 31, 2013 solved by moving theme directory to application->views Quote Link to comment https://forums.phpfreaks.com/topic/278603-codeigniter-unable-to-load-the-requested-file-error/#findComment-1433408 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.