yiibase.php line 310--what is that for

I designed a hit model. It works very well in my wamp environment. Once I uploaded to my server (dedicated CentOS with Plesk), I got the following error. It seems it cannot find the hits file.

The model name is hits.

The error is in line 310 of the YiiBase.php file. I wonder what could be wrong.

YiiBase::include(hits.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory Source File


00298:      * @param string class name

00299:      * @return boolean whether the class has been loaded successfully

00300:      */

00301:    public static function autoload($className)

00302:    {

00303:        // use include so that the error PHP file may appear

00304:        if(isset(self::$_coreClasses[$className]))

00305:            include(YII_PATH.self::$_coreClasses[$className]);

00306:        else if(isset(self::$_classes[$className]))

00307:            include(self::$_classes[$className]);

00308:        else

00309:        {

00310: include($className.'.php');

Make sure the file name is exactly the same as the model class name (case-sensitive).

Thank you,Qiang. Changed it to lower case and now it works.

Interesting though. All other models are Cap-first and they all worked.