CHttpException

/home/clients/web/kmc-corporation.ru/public_html/protected/controllers/frontend/CatalogController.php(143)

131                 }
132 
133                 $id=$path['item']['id'];
134             }
135 
136             $count_breadcrumbs=count($path['breadcrumbs']);
137 
138             if ($count_page>$count_breadcrumbs && ($count_page-1)==$count_breadcrumbs)
139             {
140                 $product=CatalogProducts::model()->active()->find('name=:name and parent_id=:parent_id',array(':parent_id'=>$id,':name'=>$pages[$count_page-1]));
141                 if (!$product)
142                 {
143                     throw new CHttpException(404);
144                 }
145 
146                 $this->getPageModule('product');
147 
148                 if (!empty($path['breadcrumbs']))//добавить последний уровень крошек
149                 {
150                     $this->setBreadcrumbs($path['breadcrumbs'],'tree');
151                     $temp=array_pop($path['breadcrumbs']);
152                     $this->breadcrumbs[$temp['title']]=$this->createUrl('tree',array('url'=>$temp['url']));
153                 }
154                 $this->breadcrumbs[]=$product->title;
155                 $this->setPageTitle($product->title);

Stack Trace

#10
+
 /home/clients/web/kmc-corporation.ru/public_html/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 04:06:19 Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.6.40 Yii Framework/1.1.17