/home/topseti_user/web/topseti.ru/public_html/protected/extensions/Tree.php(62)
50 $this->_items[$id]['data'] = $data; 51 } 52 /** 53 * Получить элемент по индификатору 54 * @param mixed $id 55 * @throws \Exception 56 * @return array 57 */ 58 public function getItem($id){ 59 if($this->itemExists($id)) 60 return $this->_items[$id]; 61 else 62 throw new \Exception('wrong id'); 63 } 64 /** 65 * Проверка на наличие дочерних элементов 66 * @param mixed $id 67 * @return boolean 68 */ 69 public function hasChilds($id) { 70 return isset($this->_childs[$id]); 71 } 72 /** 73 * Получить дочерние элементы 74 * @param mixed $id
#0 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/components/ItemUrlRule.php(58): app\extensions\Tree->getItem(null) 53 $catalogTree = CatalogEntry::model()->getCatalogTree(); 54 $itemSlug = array_pop($parts); 55 if(!($item = ProductItem::model()->find('slug = :slug',array(':slug' => $itemSlug)))) 56 return false; 57 58 $catalogEntryBranch = $catalogTree->getItem($item->catalog_id); 59 do { 60 $catalogs[]=$catalogEntryBranch['data']->slug; 61 } while(!empty($catalogEntryBranch['parent']) && ($catalogEntryBranch = $catalogTree->getItem($catalogEntryBranch['parent']))); 62 63 $catalogs=array_reverse($catalogs); |
#1 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(2941): app\components\ItemUrlRule->parseUrl(CUrlManager, app\components\Request, "item/domofony/interfony-interkomy/commax/tp-1-k", "item/domofony/interfony-interkomy/commax/tp-1-k") 2936 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 2937 foreach($this->_rules as $i=>$rule) 2938 { 2939 if(is_array($rule)) 2940 $this->_rules[$i]=$rule=Yii::createComponent($rule); 2941 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 2942 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 2943 } 2944 if($this->useStrictParsing) 2945 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 2946 array('{route}'=>$pathInfo))); |
#2 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(1644): CUrlManager->parseUrl(app\components\Request) 1639 $route=$this->catchAllRequest[0]; 1640 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1641 $_GET[$name]=$value; 1642 } 1643 else 1644 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1645 $this->runController($route); 1646 } 1647 protected function registerCoreComponents() 1648 { 1649 parent::registerCoreComponents(); |
#3 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(1170): CWebApplication->processRequest() 1165 public function run() 1166 { 1167 if($this->hasEventHandler('onBeginRequest')) 1168 $this->onBeginRequest(new CEvent($this)); 1169 register_shutdown_function(array($this,'end'),0,false); 1170 $this->processRequest(); 1171 if($this->hasEventHandler('onEndRequest')) 1172 $this->onEndRequest(new CEvent($this)); 1173 } 1174 public function end($status=0,$exit=true) 1175 { |
#4 |
+
–
/home/topseti_user/web/topseti.ru/public_html/index.php(678): CApplication->run() 673 ini_set('display_errors', true); 674 set_time_limit(90); 675 676 require_once($yii); 677 require_once('vendor/autoload.php'); 678 Yii::createWebApplication($config)->run(); 679 |