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/XNews.php(253): CModule->__get("db")
248                 $key = $cacheService->createKey();
249                 $cache = Yii::app()->cache->get($key);
250             }
251             $cache=false;
252             if ($cache == false) {
253                 $connect = Yii::app()->db;
254                 $sql = "SELECT * FROM tbl_news WHERE id = ".$id;
255                 $command = $connect->createCommand($sql);
256                 $row = $command->queryRow();
257                 Yii::app()->cache->set($key, $row, ConstantsUtil::TIME_CACHE_86400); 
258             }
#9
+
 /home/mekongto/public_html/protected/controllers/HomeController.php(384): XNews->getDataById(371)
379             $id         = isset($_GET['id']) ? intval($_GET['id']) : ''; 
380             $page       = isset($_GET['page']) ? intval($_GET['page']) : 1; 
381             $tag        = isset($_GET["tag"])   ? $_GET["tag"]:"tag";
382             $cat_id         = isset($_GET['cat_id']) ? intval($_GET['cat_id']) : 0;
383 
384             $news = XNews::getDataById($id);
385             $bai_viet_ngau_nhien = XNews::getNewsByNewRand($id,$cat_id);  
386             $cam = XNews::getNewsByNewsDetail($cat_id);              
387             // SEO
388             $str_page='';
389 
#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-10-22 16:53:35 Apache Yii Framework/1.1.8