CHttpException

/var/www/oaomtm1/data/www/oaomtm.by/protected/controllers/frontend/CatalogController.php(131)

119                     }
120 
121                     $id = $path['item']['id'];
122                 }
123 
124                 $count_breadcrumbs = count($path['breadcrumbs']);
125 
126                 if ($count_page > $count_breadcrumbs && ($count_page - 1) == $count_breadcrumbs)
127                 {
128                     $product = CatalogProducts::model()->active()->find('name = :name and parent_id = :parent_id', array(':parent_id' => $id, ':name' => $pages[$count_page - 1]));
129                     if (!$product)
130                     {
131                         throw new CHttpException(404);
132                     }
133 
134                     $this->getPageModule('product');
135 
136                     if (!empty($path['breadcrumbs'])) //добавить последний уровень крошек
137                     {
138                         $this->setBreadcrumbs($path['breadcrumbs'], 'catalog/tree');
139                         $temp = array_pop($path['breadcrumbs']);
140                     }
141 
142                    // $this->breadcrumbs[$temp['title']] = $this->createUrl('catalog/tree', array('url' => $temp['url']));
143                     $this->breadcrumbs[] = $product->title;

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-28 21:29:35 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