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/XCategoryCity.php(85): CModule->__get("db")
80             $key          = $cacheService->createKey();
81             $cache        = Yii::app()->cache->get($key);
82             $cache = false;
83             if($cache == false) {  
84                 $sql = "SELECT * FROM tbl_category_city_hotel WHERE id = ".intval($city_cat_id);    
85                 $connect = Yii::app()->db;
86                 $command = $connect->createCommand($sql);
87                 $row = $command->queryRow();
88                 Yii::app()->cache->set($key, $row, ConstantsUtil::TIME_CACHE_900);                     
89             }
90             else { 
#9
+
 /home/mekongto/public_html/protected/controllers/HomeController.php(575): XCategoryCity->getCategoryNameCity(12)
570             $object_id      = isset($_GET['object_id']) ? intval($_GET['object_id']) : 0; 
571             $page           = isset($_GET['page']) ? intval($_GET['page']) : 1; 
572             $tag            = isset($_GET["tag"])   ? $_GET["tag"]:"tag";
573             $row_per_page = 20;
574             $limit = 20;
575             $cat = XCategoryCity::getCategoryNameCity($city_cat_id); 
576             $cat_hot = XCategoryCity::getCategoryNameCityHot($city_cat_id);     
577             $update = XCategory::getDataById($cat_id); 
578             $limit_tag = 4;
579             $limit = 5;
580             $cafe = XNews::getDataByCafe($id,$limit);
#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 09:57:52 Apache Yii Framework/1.1.8