Welcome Guest, Not a member yet? Register   Sign In
[SOLVED #7] Loading libraries works on desktop, but not on server.
#6

It would be best to use CI3 for new projects, since CI2 will no longer be supported after October. However, it probably won't change this specific issue for you. My previous response was based on the assumption that you were using CI3. In CI2 it's a little more complicated, but, if your class name when you call $this->load->library() (or in your autoload configuration) matches your class name in the file, and your filename matches your class name, you usually won't have any issues. Capitalization of the file name and class name must match, and you might as well make sure you use an uppercase first letter for CI3 compatibility, even if you continue to use CI2 in the short term. CI2 will try to load ucfirst($class) and strtolower($class), where CI3 will only try to load ucfirst($class).
Reply


Messages In This Thread
RE: Loading libraries works on desktop, but not on server. - by mwhitney - 08-17-2015, 08:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB