CHttpException

/home/admin/web/ancard.ru/public_html/protected/controllers/frontend/CatalogController.php(169)

157                 }
158 
159                 $id=$path['item']['id'];
160             }
161 
162             $count_breadcrumbs=count($path['breadcrumbs']);
163 
164             if ($count_page>$count_breadcrumbs && ($count_page-1)==$count_breadcrumbs)
165             {
166                 $product=CatalogProducts::model()->notDeleted()->find('name=:name and parent_id=:parent_id',array(':parent_id'=>$id,':name'=>$pages[$count_page-1]));
167                 if (!$product)
168                 {
169                     throw new CHttpException(404);
170                 }
171 
172                 $this->layout='frontend';
173                 $this->getPageModule('product');
174 
175                 if (!empty($path['breadcrumbs']))//добавить последний уровень крошек
176                 {
177                     $this->setBreadcrumbs($path['breadcrumbs'],'tree');
178                     $temp=array_pop($path['breadcrumbs']);
179                     $this->breadcrumbs[$temp['title']]=$this->createUrl('tree',array('url'=>$temp['url']));
180                 }
181                 $this->breadcrumbs[]=$product->title;

Stack Trace

#10
+
 /home/admin/web/ancard.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-28 23:49:44 Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/7.4.33 Yii Framework/1.1.17