/home/c/cb69283/public_html/protected/modules/industries/models/Sectors.php(136)
124 } 125 126 public function getRel($id, &$data=array()) { 127 $id = str_replace("--", "", $id); 128 $data[$id] = ''; 129 $criteria = new CDbCriteria(); 130 $criteria->addCondition('id=:id'); 131 $criteria->params[':id'] = $id; 132 if (isset($_GET['lang']) && $_GET['lang']) { 133 $criteria->select = array('id','parent_id', 'title_' . $_GET['lang'] . ' as title'); 134 } 135 $data[$id] = Sectors::model()->find($criteria); 136 if ($data[$id]->parent_id) { 137 $this->getRel($data[$id]->parent_id, $data); 138 } 139 return $data; 140 } 141 public function getGroup($parent = '=0', $namegroup = '', &$return = array()) { 142 $categories = Sectors::model()->findAll(array('condition' => "parent_id" . $parent, 'order' => 'sort,title')); 143 foreach ($categories as $category) { 144 $sub = Sectors::model()->count('parent_id=' . $category->id); 145 if ($sub > 0) { 146 if ($namegroup){ 147 $return[] = array('id' => $category->id, 'title' => $category->title, 'group' => $namegroup); 148 }
#0 |
+
–
/home/c/cb69283/public_html/protected/modules/entries/controllers/DefaultController.php(31): Sectors->getRel(151) 26 $params['producers'] = $_GET['producers']; 27 } 28 29 $this->breadcrumbs[Yii::t('app','По продукту')] = Yii::app()->createUrl('catalog/default/sort', $params); 30 31 $titles = array_reverse(Sectors::model()->getRel(intval($_GET['industries']))); 32 foreach ($titles as $item) { 33 $this->breadcrumbs[$item->title] = Yii::app()->createUrl('catalog/default/sort', array('industries'=>$item->id)); 34 } 35 } 36 else |
#1 |
+
–
/home/c/cb69283/public_html/protected/modules/entries/controllers/DefaultController.php(124): DefaultController->setBreadcrumbs(Entries) 119 } 120 } 121 } 122 123 // $manufacturer = Manufacturers::model()->getRel($model->manufacturer_id); 124 $this->setBreadcrumbs($model); 125 126 $relateds = Entries::model()->getRel($model->equipment_type_id, $model->id); 127 128 if(isset($_GET['print']) && $_GET['print']=='Y'){ 129 |
#2 |
unknown(0): DefaultController->actionView("19")
|
#3 |
+
–
/home/c/cb69283/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(DefaultController, array("19")) 099 else if($param->isDefaultValueAvailable()) 100 $ps[]=$param->getDefaultValue(); 101 else 102 return false; 103 } 104 $method->invokeArgs($object,$ps); 105 return true; 106 } 107 } |
#4 |
+
–
/home/c/cb69283/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(DefaultController, ReflectionMethod, array("industries" => "151", "id" => "19")) 43 { 44 $methodName='action'.$this->getId(); 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#5 |
+
–
/home/c/cb69283/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("industries" => "151", "id" => "19")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#6 |
+
–
/home/c/cb69283/public_html/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/home/c/cb69283/public_html/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#8 |
+
–
/home/c/cb69283/public_html/framework/web/CWebApplication.php(277): CController->run("view") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/home/c/cb69283/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController("entries/default/view") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#10 |
+
–
/home/c/cb69283/public_html/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#11 |
+
–
/home/c/cb69283/public_html/index.php(36): CApplication->run() 31 break; 32 } 33 ini_set('display_errors', 1); 34 ini_set('display_startup_errors', 1); 35 error_reporting(E_ALL); 36 Yii::createWebApplication($config)->run(); 37 38 |