Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Autoloader issues on PHP7.1
I think I've found another issue after deployment of an app to server working under PHP7.1
In the APP folder I have structure like this:
Now, SomeHelperClass and OtherHelperClass sit in the global namespace so in the code :
Accessing clasess from other dirs works as well:
After migtation to PHP7.1 it doesn't work.
The quick workaround is to add all the classes to the autoloader in application's bootstrap file, but it may be a bit of pain with large number of classes.
Any error messages? Or other helpful info?
The only error message is that PHP can't find requested class.
PS. I can provide you with some sample code if that's any help.
I really need a php 7.1 setup now...
Wait a sec:
SomeHelperClass.php is an illegal filename, Fuel requires all files to be lowercase. See
general/coding_standards.html under "File Naming".
You could get away with a filename like this on Windows (because the filesystem is case insensitive), but not in Linux (and MacOS depending on the configuration).
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion