PHP Error

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

/home/mekongto/yii/framework/YiiBase.php(421)

409                 {
410                     foreach(self::$_includePaths as $path)
411                     {
412                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
413                         if(is_file($classFile))
414                         {
415                             include($classFile);
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

#8
+
 /home/mekongto/public_html/protected/models/XHotel.php(115): CModule->__get("db")
110 
111         public function getTotalNewsByType($city_id) {
112 
113             $sql = "SELECT count(id) FROM tbl_hotel WHERE city_id=".$city_id;
114 
115             $command=Yii::app()->db->createCommand($sql);
116             $row= $command->queryRow();
117             return $row['count(id)'];    
118         }     
119 
120         public function getAboutByTop($city_id,$status) { 
#9
+
 /home/mekongto/public_html/protected/controllers/HomeController.php(690): XHotel->getTotalNewsByType(0)
685             $type = isset($_GET['type']) ? intval($_GET['type']) : 0;     
686             $page       = isset($_GET['page']) ? intval($_GET['page']) : 1;
687             $view_type  = isset($_GET['view_type']) ? $_GET['view_type'] : 1; 
688             $currentPage = isset($_GET['page']) ? intval($_GET['page']) : 1;
689             $numberRecordPerPage = Yii::app()->params["numberRecordPerPage"];
690             $totalNews = XHotel::getTotalNewsByType($type);
691             $city_id    =  isset($_GET['city_id']) ? intval($_GET['city_id']) : 0;
692             $status    =  isset($_GET['status']) ? intval($_GET['status']) : 0;   
693 
694             $row_per_page = 20;
695             $limit = 9;
#17
+
 /home/mekongto/public_html/index.php(9): CApplication->run()
04     error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
05     $yii=dirname(__FILE__).'/../yii/framework/yii.php';
06     $config=dirname(__FILE__).'/protected/config/main.php';
07     defined('YII_DEBUG') or define('YII_DEBUG',true);    
08     require_once($yii);    
09     Yii::createWebApplication($config)->run();
10 ?>
2018-11-19 10:03:14 Apache Yii Framework/1.1.8