PHP warning

include(News.php): failed to open stream: No such file or directory

/home/c78212/mailand.ru/www/yii/YiiBase.php(421)

409                         {
410                             include($classFile);
411                             if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
412                                 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
413                                     '{class}'=>$className,
414                                     '{file}'=>$classFile,
415                                 )));
416                             break;
417                         }
418                     }
419                 }
420                 else
421                     include($className.'.php');
422             }
423             else  // class name with namespace in PHP 5.3
424             {
425                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
426                 if(($path=self::getPathOfAlias($namespace))!==false)
427                     include($path.'.php');
428                 else
429                     return false;
430             }
431             return class_exists($className,false) || interface_exists($className,false);
432         }
433         return true;

Stack Trace

#2
+
 /home/c78212/mailand.ru/www/protected/controllers/SiteController.php(77): spl_autoload_call("News")
72   /**
73    * @param $id
74    * @throws CHttpException
75    */
76   public function actionNewsSingle($id){
77     $news_single = News::model()->published()->findByPk($id);
78     $news = News::model()->published()->findAll(array(
79       'order' => 'date DESC',
80       'limit' => 6
81     ));
82 
#12
+
 /home/c78212/mailand.ru/www/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 16:46:56 Apache/2.4.38 (Debian) Yii Framework/1.1.13