/var/www/web/sites/193.107.237.32/Yii/current/db/CDbCommand.php(217)
205 { 206 if($this->_statement==null) 207 { 208 try 209 { 210 $this->_statement=$this->getConnection()->getPdoInstance()->prepare($this->getText()); 211 $this->_paramLog=array(); 212 } 213 catch(Exception $e) 214 { 215 Yii::log('Error in preparing SQL: '.$this->getText(),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 216 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 217 throw new CDbException(Yii::t('yii','CDbCommand failed to prepare the SQL statement: {error}', 218 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$errorInfo); 219 } 220 } 221 } 222 223 /** 224 * Cancels the execution of the SQL statement. 225 */ 226 public function cancel() 227 { 228 $this->_statement=null; 229 }
#0 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/CDbCommand.php(272): CDbCommand->prepare() 267 * @return CDbCommand the current command being executed 268 * @see http://www.php.net/manual/en/function.PDOStatement-bindValue.php 269 */ 270 public function bindValue($name, $value, $dataType=null) 271 { 272 $this->prepare(); 273 if($dataType===null) 274 $this->_statement->bindValue($name,$value,$this->_connection->getPdoType(gettype($value))); 275 else 276 $this->_statement->bindValue($name,$value,$dataType); 277 $this->_paramLog[$name]=$value; |
#1 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/schema/CDbCommandBuilder.php(463): CDbCommand->bindValue(":ypl0", "130") 458 { 459 foreach($values as $name=>$value) 460 { 461 if($name[0]!==':') 462 $name=':'.$name; 463 $command->bindValue($name,$value); 464 } 465 } 466 } 467 468 /** |
#2 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/ar/CActiveFinder.php(1297): CDbCommandBuilder->bindValues(CDbCommand, array(":ypl0" => "130")) 1292 if($orders!==array()) 1293 $sql.=' ORDER BY ' . implode(', ',$orders); 1294 1295 $sql=$builder->applyLimit($sql,$this->limit,$this->offset); 1296 $command=$builder->getDbConnection()->createCommand($sql); 1297 $builder->bindValues($command,$this->params); 1298 return $command; 1299 } 1300 } 1301 1302 |
#3 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/ar/CActiveFinder.php(760): CJoinQuery->createCommand(CMysqlCommandBuilder) 755 * Executes the join query and populates the query results. 756 * @param CJoinQuery $query the query to be executed. 757 */ 758 public function runQuery($query) 759 { 760 $command=$query->createCommand($this->_builder); 761 foreach($command->queryAll() as $row) 762 $this->populateRecord($query,$row); 763 } 764 765 /** |
#4 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/ar/CActiveFinder.php(489): CJoinElement->runQuery(CJoinQuery) 484 $this->_joined=true; 485 $child->_joined=true; 486 487 $this->_finder->baseLimited=false; 488 $child->buildQuery($query); 489 $child->runQuery($query); 490 foreach($child->children as $c) 491 $c->find(); 492 493 if(empty($child->records)) 494 return; |
#5 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind(Core) 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
#6 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/ar/CActiveRecord.php(272): CActiveFinder->lazyFind(Core) 267 else 268 $r=$name; 269 unset($this->_related[$name]); 270 271 $finder=new CActiveFinder($this,$r); 272 $finder->lazyFind($this); 273 274 if(!isset($this->_related[$name])) 275 { 276 if($relation instanceof CHasManyRelation) 277 $this->_related[$name]=array(); |
#7 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/ar/CActiveRecord.php(179): CActiveRecord->getRelated("childs") 174 elseif(isset($this->getMetaData()->columns[$name])) 175 return false; 176 elseif(isset($this->_related[$name])) 177 return true; 178 elseif(isset($this->getMetaData()->relations[$name])) 179 return $this->getRelated($name)!==null; 180 else 181 return parent::__isset($name); 182 } 183 184 /** |
#8 |
+
–
/var/www/web/sites/193.107.237.32/protected/extensions/ItexMenus/ItexMenus.php(95): CActiveRecord->__isset("childs") 090 if ($currentModel instanceof MenuCategory && is_numeric($currentModel->core_id) && $currentModel->core_id > 0) { 091 $menuItems = Core::model()->findAllByAttributes(array('parent_id' => $currentModel->core_id)); 092 } else { 093 $menuItems = $currentModel->menuItem; 094 } 095 } elseif (isset($currentModel->childs)) { 096 $menuItems = $currentModel->childs; 097 } 098 $isActive = false; 099 $data = array(); 100 if (isset($menuItems) && !empty($menuItems)) { |
#9 |
+
–
/var/www/web/sites/193.107.237.32/protected/extensions/ItexMenus/ItexMenus.php(140): ItexMenus->getItems(Core, 2, false) 135 if (!isset($item['label'])) { 136 $item['label'] = $menuItem->name; 137 } 138 // $item['id']=$menuItem->core_id; 139 $item['active'] = $this->isActive($url); 140 if (($childs = $this->getItems($menuItem, $depthLevel + 1, false))) { 141 if ($childs[1]) { 142 $isActive = false; 143 $item['active'] = true; 144 } 145 if ($item['active'] || $this->_activeAll) { |
#10 |
+
–
/var/www/web/sites/193.107.237.32/protected/extensions/ItexMenus/ItexMenus.php(217): ItexMenus->getItems(MenuCategory) 212 'menu' => $sMenu, 213 'items' => $items, 214 ); 215 } 216 } else { 217 list($this->_items) = $this->getItems($menu); 218 } 219 } 220 parent::init(); 221 } 222 |
#11 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(147): ItexMenus->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#12 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(172): CBaseController->createWidget("ext.ItexMenus.ItexMenus", array("menuType" => "header", "view" => "header", "maxDepthLevel" => 2, "activeAll" => true, ...)) 167 $widget->run(); 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 |
#13 |
+
–
/var/www/web/sites/193.107.237.32/protected/views/layouts/main.php(121): CBaseController->widget("ext.ItexMenus.ItexMenus", array("menuType" => "header", "view" => "header", "maxDepthLevel" => 2, "activeAll" => true, ...)) 116 'view' => 'header', 117 'maxDepthLevel'=>2, 118 'activeAll'=>true, 119 'cat'=>$this->getCategories() 120 ) 121 ); 122 123 ?> 124 </div> 125 <ul id="links"> 126 <li><a href="<?=Yii::app()->createUrl(PlaceAnAdPage::model()->byModelName()->find()->url)?>"><img src="img/l1.png" alt="" /><br />Подать объявление</a></li> |
#14 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(126): require("/var/www/web/sites/193.107.237.32/protected/views/layouts/main.p...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#15 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(95): CBaseController->renderInternal() 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#16 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/widgets/CContentDecorator.php(76): CBaseController->renderFile() 71 $viewFile=$owner->getViewFile($this->view); 72 if($viewFile!==false) 73 { 74 $data=$this->data; 75 $data['content']=$content; 76 return $owner->renderFile($viewFile,$data,true); 77 } 78 else 79 return $content; 80 } 81 } |
#17 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/widgets/CContentDecorator.php(54): CContentDecorator->decorate() 49 * This method decorates the output with the specified {@link view}. 50 * @param string $output the captured output to be processed 51 */ 52 public function processOutput($output) 53 { 54 $output=$this->decorate($output); 55 parent::processOutput($output); 56 } 57 58 /** 59 * Decorates the content by rendering a view and embedding the content in it. |
#18 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/widgets/COutputProcessor.php(44): CContentDecorator->processOutput() 39 * This method stops output buffering and processes the captured output. 40 */ 41 public function run() 42 { 43 $output=ob_get_clean(); 44 $this->processOutput($output); 45 } 46 47 /** 48 * Processes the captured output. 49 * |
#19 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(206): COutputProcessor->run() 201 */ 202 public function endWidget($id='') 203 { 204 if(($widget=array_pop($this->_widgetStack))!==null) 205 { 206 $widget->run(); 207 return $widget; 208 } 209 else 210 throw new CException(Yii::t('yii','{controller} has an extra endWidget({id}) call in its view.', 211 array('{controller}'=>get_class($this),'{id}'=>$id))); |
#20 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(300): CBaseController->endWidget("CContentDecorator") 295 * Ends the rendering of content. 296 * @see beginContent 297 */ 298 public function endContent() 299 { 300 $this->endWidget('CContentDecorator'); 301 } 302 } |
#21 |
+
–
/var/www/web/sites/193.107.237.32/protected/views/layouts/column3.php(23): CBaseController->endContent() 18 ) 19 ); 20 ?> 21 <? echo $content;?> 22 </div> 23 <?$this->endContent(); |
#22 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(126): require("/var/www/web/sites/193.107.237.32/protected/views/layouts/column...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#23 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/web/sites/193.107.237.32/protected/views/layouts/column...", array("content" => "<div class="pages">
<div class="changePages">
<span class="la..."), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#24 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CController.php(784): CBaseController->renderFile("/var/www/web/sites/193.107.237.32/protected/views/layouts/column...", array("content" => "<div class="pages">
<div class="changePages">
<span class="la..."), true) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 788 $output=$this->processOutput($output); 789 |
#25 |
+
–
/var/www/web/sites/193.107.237.32/protected/controllers/CatalogAds2Controller.php(86): CController->render("//catalog/ads", array("model" => CatalogAdsLvl2, "items" => array(), "banner" => Banner, "bannerItems" => array(Banner, Banner, Banner), ...)) 81 'operationID'=>$operationID, 82 'limit'=>$limit, 83 'sort'=>$sort, 84 'tops'=>$tops 85 ) 86 ); 87 } 88 89 public function actionAddToBookmark($id){ 90 $userId = Yii::app()->getUser()->User()->id; 91 $bookmark = new BookmarkUser(); |
#26 |
unknown(0): CatalogAds2Controller->actionIndex("", "", "", 0, ...)
|
#27 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(CatalogAds2Controller, array("", "", "", 0, ...)) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#28 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(CatalogAds2Controller, ReflectionMethod, array("operationID" => "933")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#29 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CController.php(308): CInlineAction->runWithParams(array("operationID" => "933")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#30 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#31 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#32 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#33 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/web/CWebApplication.php(141): CWebApplication->runController("catalogAds2/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#34 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#35 |
+
–
/var/www/web/sites/193.107.237.32/index.php(23): CApplication->run() 18 } 19 20 require_once 'Yii/current/YiiBase.php'; 21 require_once 'protected/yii.php'; 22 23 Yii::createWebApplication($config)->run(); |