/home3/ratushny/public_html/framework/db/ar/CActiveFinder.php(1355)
1343 1344 private function queryOneMany() 1345 { 1346 $relation=$this->relation; 1347 $model=CActiveRecord::model($relation->className); 1348 $builder=$model->getCommandBuilder(); 1349 $schema=$builder->getSchema(); 1350 $table=$model->getTableSchema(); 1351 $parent=$this->_parent; 1352 $pkTable=$parent->model->getTableSchema(); 1353 1354 $fks=preg_split('/\s*,\s*/',$relation->foreignKey,-1,PREG_SPLIT_NO_EMPTY); 1355 if(count($fks)!==count($pkTable->primaryKey)) 1356 throw new CDbException(Yii::t('yii','The relation "{relation}" in active record class "{class}" is specified with an invalid foreign key. The columns in the key must match the primary keys of the table "{table}".', 1357 array('{class}'=>get_class($parent->model), '{relation}'=>$relation->name, '{table}'=>$pkTable->name))); 1358 1359 // set up mapping between fk and pk columns 1360 $map=array(); // pk=>fk 1361 foreach($fks as $i=>$fk) 1362 { 1363 if(!isset($table->columns[$fk])) 1364 throw new CDbException(Yii::t('yii','The relation "{relation}" in active record class "{class}" is specified with an invalid foreign key "{key}". There is no such column in the table "{table}".', 1365 array('{class}'=>get_class($parent->model), '{relation}'=>$relation->name, '{key}'=>$fk, '{table}'=>$table->name))); 1366 1367 if(isset($table->foreignKeys[$fk]))
#0 |
+
–
/home3/ratushny/public_html/framework/db/ar/CActiveFinder.php(1341): CStatElement->queryOneMany() 1336 public function query() 1337 { 1338 if(preg_match('/^\s*(.*?)\((.*)\)\s*$/',$this->relation->foreignKey,$matches)) 1339 $this->queryManyMany($matches[1],$matches[2]); 1340 else 1341 $this->queryOneMany(); 1342 } 1343 1344 private function queryOneMany() 1345 { 1346 $relation=$this->relation; |
#1 |
+
–
/home3/ratushny/public_html/framework/db/ar/CActiveFinder.php(437): CStatElement->query() 432 433 foreach($this->children as $child) // find recursively 434 $child->find(); 435 436 foreach($this->stats as $stat) 437 $stat->query(); 438 } 439 440 /** 441 * Performs lazy find with the specified base record. 442 * @param CActiveRecord $baseRecord the active record whose related object is to be fetched. |
#2 |
+
–
/home3/ratushny/public_html/framework/db/ar/CActiveFinder.php(68): CJoinElement->find(CDbCriteria) 63 { 64 $this->_joinTree->tableAlias=$criteria->alias; 65 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($criteria->alias); 66 } 67 68 $this->_joinTree->find($criteria); 69 $this->_joinTree->afterFind(); 70 71 if($all) 72 { 73 $result = array_values($this->_joinTree->records); |
#3 |
+
–
/home3/ratushny/public_html/framework/db/ar/CActiveRecord.php(1302): CActiveFinder->query(CDbCriteria, true) 1297 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1298 } 1299 else 1300 { 1301 $finder=new CActiveFinder($this,$criteria->with); 1302 return $finder->query($criteria,$all); 1303 } 1304 } 1305 1306 /** 1307 * Applies the query scopes to the given criteria. |
#4 |
+
–
/home3/ratushny/public_html/framework/db/ar/CActiveRecord.php(1416): CActiveRecord->query(CDbCriteria, true) 1411 */ 1412 public function findAll($condition='',$params=array()) 1413 { 1414 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1415 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1416 return $this->query($criteria,true); 1417 } 1418 1419 /** 1420 * Finds a single active record with the specified primary key. 1421 * See {@link find()} for detailed explanation about $condition and $params. |
#5 |
+
–
/home3/ratushny/public_html/protected/extensions/widgets/WTagCloud.php(56): CActiveRecord->findAll() 51 } 52 53 protected function getTags() 54 { 55 $data = array(); 56 $tags = Tag::model()->with('tagCount')->findAll(); 57 foreach($tags as $tag) 58 { 59 $this->tags[$tag->tag_id] = $tag->title; 60 $data[$tag->tag_id] = $tag->tagCount; 61 } |
#6 |
+
–
/home3/ratushny/public_html/protected/extensions/widgets/WTagCloud.php(67): WTagCloud->getTags() 62 return $data; 63 } 64 65 public function run() 66 { 67 $data = $this->getTags(); 68 $data = $this->dropLowWeight($data); 69 $data = $this->calculateWeight($data); 70 71 $this->render('WTagCloud',array( 72 'data'=>$data, |
#7 |
+
–
/home3/ratushny/public_html/framework/web/CBaseController.php(173): WTagCloud->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 178 /** |
#8 |
+
–
/home3/ratushny/public_html/protected/views/tag/index.php(27): CBaseController->widget("ext.widgets.WTagCloud", array()) 22 <div class="sidebar span-6"> 23 <div class="block"> 24 <h2 class="title">Article Tags</h2> 25 <?php 26 $this->widget('ext.widgets.WTagCloud', array( 27 )); 28 ?> 29 </div> 30 <div class="block categoriesList"> 31 <h2 class="title">Shop Categories</h2> 32 <?php $this->widget('ext.widgets.WCategoriesMenu'); ?> |
#9 |
+
–
/home3/ratushny/public_html/framework/web/CBaseController.php(126): require("/home3/ratushny/public_html/protected/views/tag/index.php") 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 } |
#10 |
+
–
/home3/ratushny/public_html/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home3/ratushny/public_html/protected/views/tag/index.php", array("tag" => Tag, "dataProvider" => CActiveDataProvider, "page" => 1, "total" => "4"), 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); |
#11 |
+
–
/home3/ratushny/public_html/framework/web/CController.php(869): CBaseController->renderFile("/home3/ratushny/public_html/protected/views/tag/index.php", array("tag" => Tag, "dataProvider" => CActiveDataProvider, "page" => 1, "total" => "4"), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#12 |
+
–
/home3/ratushny/public_html/framework/web/CController.php(782): CController->renderPartial("index", array("tag" => Tag, "dataProvider" => CActiveDataProvider, "page" => 1, "total" => "4"), true) 777 */ 778 public function render($view,$data=null,$return=false) 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 |
#13 |
+
–
/home3/ratushny/public_html/protected/controllers/TagController.php(36): CController->render("index", array("tag" => Tag, "dataProvider" => CActiveDataProvider, "page" => 1, "total" => "4")) 31 32 $this->render('index', array( 33 'tag'=>$tag, 34 'dataProvider'=>$dataProvider, 35 'page'=>$page, 36 'total'=>$count 37 )); 38 } 39 40 protected function loadModel($id) 41 { |
#14 |
unknown(0): TagController->actionIndex("76", "Melanoma", 1)
|
#15 |
+
–
/home3/ratushny/public_html/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(TagController, array("76", "Melanoma", 1)) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#16 |
+
–
/home3/ratushny/public_html/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(TagController, ReflectionMethod, array("id" => "76", "title" => "Melanoma")) 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 } |
#17 |
+
–
/home3/ratushny/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "76", "title" => "Melanoma")) 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; |
#18 |
+
–
/home3/ratushny/public_html/framework/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(); |
#19 |
+
–
/home3/ratushny/public_html/framework/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); |
#20 |
+
–
/home3/ratushny/public_html/framework/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))); |
#21 |
+
–
/home3/ratushny/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("tag/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. |
#22 |
+
–
/home3/ratushny/public_html/framework/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 /** |
#23 |
+
–
/home3/ratushny/public_html/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',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |