Welcome Guest, Not a member yet? Register   Sign In
Help with loading views required
#1

[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
DEBUG - 2011-09-02 23:24:09 --> Utf8 Class Initialized
DEBUG - 2011-09-02 23:24:09 --> UTF-8 Support Enabled
DEBUG - 2011-09-02 23:24:09 --> URI Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Router Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Output Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Security Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Input Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Global POST and COOKIE data sanitized
DEBUG - 2011-09-02 23:24:09 --> Language Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Loader Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Helper loaded: cookie_helper
DEBUG - 2011-09-02 23:24:09 --> Helper loaded: url_helper
DEBUG - 2011-09-02 23:24:09 --> Helper loaded: string_helper
DEBUG - 2011-09-02 23:24:09 --> Database Driver Class Initialized
DEBUG - 2011-09-02 23:24:09 --> Controller Class Initialized

Thanks in advance,
Charlie Hadden


Messages In This Thread
Help with loading views required - by El Forum - 09-02-2011, 05:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB