A
A
alexandrnevajno12017-12-04 19:30:25
open server
alexandrnevajno1, 2017-12-04 19:30:25

On the server, filenames and functions like ORM::factory(...) are case-sensitive. But in OpenServer, no. How to make it taken into account in OpenServer too?

Hello! I made a website, uploaded it to a server on the Internet. Began to use, and it produces errors. Understood that errors are connected with the register.
For example,
ORM::factory('user')
works on OpenServer. And on the server on the Internet - no. It is imperative that the user be capitalized. Like this:
ORM::factory('User')
Otherwise it will throw an error:
ErrorException [ Fatal Error ]: Class 'Model_user' not found
How can I make Open Server also recognize case? In order not to look for errors on an already uploaded project, but to eliminate them during development.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2017-12-04
@kotomyava

Use for OS development with case-sensitive file names. =) I.e. don't use windows and openserver, probably, or just be aware that the behavior can (and will) be different...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question