New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to load class error #2210
Comments
The class name needs to be in class Mark_zuckerburg {} |
since when? no problem 2 weeks ago |
Regarding the actual class name (not the filename), that's been the standard for a long time. Recently, the file name itself has also been standardized to |
i see. thanks man |
The filename requirement isn't set yet. However, I don't see how the class name could be a problem - writing |
isn't set yet? so the problem is? |
Ignore me, I thought you were talking about controllers, which probably will change to Ucfirst as well. So far this is only enforced for libraries. |
i wonder why the error only on php 5.2 ? |
I don't think it's related to PHP, because the Unable to load the requested class error happens when it can't find the file, not when instantiating the class. So it's probably a file system preference on your server. |
Most likely - your webhost has 5.2 running on Linux (which is almost always is setup with a case-sensitive file system) and PHP 5.3 on your local machine running Windows (where both FAT* and NTFS are case-insensitive). |
thanks |
error php 5.2, no error on 5.3
i use
$this->load->libraries('mark_zuckerburg');
in my controllernamed as mark_zuckerburg.php in libraries contain
php <?php class Mark_Zuckerbug {}
The text was updated successfully, but these errors were encountered: