Case sensitivity...

View: New views
1 Messages — Rating Filter:   Alert me  

Case sensitivity...

by djteej :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have built an application with the following structure:

application
    bootstrap.php
    configs
    layouts
    modules
        admin
            models
            views
                filters
                helpers
                scripts
            controllers
        default
            models
            views
                filters
                helpers
                scripts
            controllers
library
    Zend
    Extra

www
    index.php
    images
    css
    js

Everything works great on my local machine running xampp, however on my live server (Fedora Core 4, PHP 5.2.5, Apache 2.0, MySQL 5.0) I am getting some sort of case sensative error...


Warning: Zend_Loader::include_once(Admin/Models/Users.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in /var/www/vhosts/xxxxxx.com/library-1.5/Zend/Loader.php on line 83

Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Admin/Models/Users.php' for inclusion (include_path='.:../library-1.5/:../application/modules/:.:/usr/local/lib/php') in /var/www/vhosts/xxxxxx.com/library-1.5/Zend/Loader.php on line 83

Fatal error: Class 'Admin_Models_Users' not found in /var/www/vhosts/xxxxxx.com/application/modules/admin/controllers/UsersController.php on line 30

Line 30 of UsersController.php is as follows:

$users = new Default_Models_Users();

If I change the module name and model to:

$users = new admin_models_Users();

everything is fine, but why?  what is the issue with the uppercase naming that worked fine before?  How do I make it work with the proper first up naming?