![]() |
Help with loading views required - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help with loading views required (/showthread.php?tid=44977) |
Help with loading views required - El Forum - 09-02-2011 [eluser]Unknown[/eluser] Hi there, I am in the process of developing an application in codeigniter (not my first, I've used it several times before), but I'm having a problem with loading a view file. Now, this isn't quite as ridiculous as it probably sounds: on my localhost it works fine, it's only when I've put it on a live server that it's started to play up. So, the application involves loading view files from a non-default location. I managed to achieve this with one change to system/core/Loader.php in order to turn $this->_ci_view_paths public rather than protected, then changing it in a hook (the new one is set in a hook as it will change at different parts of the application). My changes mean that there is one path set, in this case, /templates/admin/. It is also worth noting that it's set with the use of the FCPATH constant. This works perfectly on my localhost but, on the new server, it throws the error: "Unable to load the requested file: login.php". I've done all the usual verifying that the file exists and that the path is correct, all of which is how it should be. I also have codeigniter to log all messages but the output found there doesn't offer much insight: Code: DEBUG - 2011-09-02 23:24:09 --> Hooks Class Initialized Thanks in advance, Charlie Hadden |