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
/var/www/vhosts/phphits/httpdocs/yii/framework/YiiBase.php(310)
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');