CHttpException

/var/www/oaomtm1/data/www/oaomtm.by/protected/controllers/frontend/NewsController.php(29)

17 
18         $info = Structure::model()->active()->findAll('main = :main', array(':main'=> 1));
19         $news_tree = NewsTree::model()->active()->roots()->find('root = :root', array('root' => $this->root_id));
20         $news = News::model()->getProviderNews($this->getCurrentLanguage()->id, $news_tree->id);
21         $this->render('list', array('dataProvider'=>$news, 'info' => $info));
22     }
23 
24     public function actionItem($name)
25     {
26        $news=News::getNewsByName($name, $this->getCurrentLanguage()->id);
27        if (!$news)
28        {
29            throw new CHttpException(404);
30        }
31        $this->getPageModule('item');
32         $info = Structure::model()->active()->findAll('main = :main', array(':main'=> 1));
33        $this->setPageTitle($news->title);
34        $this->breadcrumbs[]=strip_tags($news->title);
35        $this->setSeoTags($news);
36        $this->setText($news);
37        $this->render('news',array('news'=>$news, 'info' => $info));
38     }
39 }

Stack Trace

#9
+
 /var/www/oaomtm1/data/www/oaomtm.by/index.php(7): CApplication->run()
2 // include Yii bootstrap file
3 defined('YII_DEBUG') or define('YII_DEBUG',true);
4 require_once(dirname(__FILE__).'/framework/yii.php');
5 $config=dirname(__FILE__).'/protected/config/frontend.php';
6 // create a Web application instance and run
7 Yii::createWebApplication($config)->run();
8 ?>
2024-03-29 18:07:33 Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/5.4.16 Yii Framework/1.1.17