Welcome Guest, Not a member yet? Register   Sign In
Best place to have your view files?
#6

(05-31-2015, 10:03 AM)lexxtoronto Wrote: Thanks guys, yes I'm calling them that way, it works no problem on my localhost, but when I go live Im having problems therefore I was wondering if I should move them to views.

Make sure the case of the filenames matches the way you call them in the code, especially if you are using Windows to develop your application and Linux (or anything but Windows) for the server. Additionally, check the permissions on the files to make sure your application can load them. Windows tends to be very forgiving on the case of filenames (because the filesystems commonly used on Windows are case-insensitive by default), but can be just as difficult (or even moreso) when dealing with permissions.

Personally, when I have some level of control on my server, or when I can ask my server's admins to do so, I add the user I use for uploading files to a group with the account used by the web server to run my application (usually www-data). Then I assign the appropriate permissions for the files/directories to that group, and they're less likely to be messed up when I add/update files (plus I don't have to give any more access than necessary to the outside world).
Reply


Messages In This Thread
RE: Best place to have your view files? - by mwhitney - 06-01-2015, 08:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB