CHttpException

Эта страница не существует :(

/app/www/www/protected/models/MenuCategory.php(145)

133             return false;
134         }
135     }
136     
137     public function getCategoryByName($name)
138     {
139         $criteria = new CDbCriteria();
140         $criteria->compare("UrlName", $name);
141         
142         $category = $this->find($criteria);
143         if($category == null)
144         {
145             throw new CHttpException(404,'Эта страница не существует :(');
146         }
147         
148         return $category;
149     }
150     
151     public function getCategoryList()
152     {
153         $criteria = new CDbCriteria();
154         $criteria->order = "OrderField";
155         //$criteria->compare("IsShow", 1);
156         
157         $list = $this->findAll($criteria);

Stack Trace

#0
+
 /app/www/www/protected/controllers/MenuController.php(47): MenuCategory->getCategoryByName("deserti")
42 //        if($category == "")
43 //        {
44 //            $this->redirect($this->createUrl('menu/category', array('category' => 'pizza')));
45 //        }
46 
47         $menuCat = MenuCategory::model()->getCategoryByName($category);        
48         $this->pageTitle = ($menuCat->SeoTitle == '') ? $menuCat->Name." / Доставка еды Красноярск Flyfoods.ru" : $menuCat->SeoTitle;
49         $this->pageDescription = ($menuCat->SeoDescription == '') ? $menuCat->Name." На Flyfoods.ru. Доставка вкусной еды в Красноярске от Berrywood Family." : $menuCat->SeoDescription;
50         $this->pageKeywords = ($menuCat->SeoKeywords == '') ? "доставка {$menuCat->Name}, доставка еды, доставка Красноярск, доставка от берривуд, berrywood family" : $menuCat->SeoKeywords;
51         
52         $menus = array();
#7
+
 /app/www/www/protected/components/Controller.php(73): CController->run("category")
68                     $session->save();
69                 }
70             }
71         }
72         
73         parent::run($actionID);
74     }
75 }
#11
+
 /app/www/www/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',10);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 18:25:11 nginx/1.25.2 Yii Framework/1.1.17