/home/nick22/public_html/yii/framework/db/CDbCommand.php(218)
206 { 207 if($this->_statement==null) 208 { 209 try 210 { 211 $this->_statement=$this->getConnection()->getPdoInstance()->prepare($this->getText()); 212 $this->_paramLog=array(); 213 } 214 catch(Exception $e) 215 { 216 Yii::log('Error in preparing SQL: '.$this->getText(),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 217 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 218 throw new CDbException(Yii::t('yii','CDbCommand failed to prepare the SQL statement: {error}', 219 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$errorInfo); 220 } 221 } 222 } 223 224 /** 225 * Cancels the execution of the SQL statement. 226 */ 227 public function cancel() 228 { 229 $this->_statement=null; 230 }
#0 |
+
–
/home/nick22/public_html/yii/framework/db/CDbCommand.php(273): CDbCommand->prepare() 268 * @return CDbCommand the current command being executed 269 * @see http://www.php.net/manual/en/function.PDOStatement-bindValue.php 270 */ 271 public function bindValue($name, $value, $dataType=null) 272 { 273 $this->prepare(); 274 if($dataType===null) 275 $this->_statement->bindValue($name,$value,$this->_connection->getPdoType(gettype($value))); 276 else 277 $this->_statement->bindValue($name,$value,$dataType); 278 $this->_paramLog[$name]=$value; |
#1 |
+
–
/home/nick22/public_html/yii/framework/db/schema/CDbCommandBuilder.php(442): CDbCommand->bindValue(":parentid", "0") 437 { 438 foreach($values as $name=>$value) 439 { 440 if($name[0]!==':') 441 $name=':'.$name; 442 $command->bindValue($name,$value); 443 } 444 } 445 } 446 447 /** |
#2 |
+
–
/home/nick22/public_html/yii/framework/db/schema/CDbCommandBuilder.php(101): CDbCommandBuilder->bindValues(CDbCommand, array(":parentid" => "0")) 096 $sql=$this->applyGroup($sql,$criteria->group); 097 $sql=$this->applyHaving($sql,$criteria->having); 098 $sql=$this->applyOrder($sql,$criteria->order); 099 $sql=$this->applyLimit($sql,$criteria->limit,$criteria->offset); 100 $command=$this->_connection->createCommand($sql); 101 $this->bindValues($command,$criteria->params); 102 return $command; 103 } 104 105 /** 106 * Creates a COUNT(*) command for a single table. |
#3 |
+
–
/home/nick22/public_html/yii/framework/db/ar/CActiveRecord.php(1286): CDbCommandBuilder->createFindCommand(CMysqlTableSchema, CDbCriteria) 1281 $this->applyScopes($criteria); 1282 if(empty($criteria->with)) 1283 { 1284 if(!$all) 1285 $criteria->limit=1; 1286 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1287 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1288 } 1289 else 1290 { 1291 $finder=new CActiveFinder($this,$criteria->with); |
#4 |
+
–
/home/nick22/public_html/yii/framework/db/ar/CActiveRecord.php(1406): CActiveRecord->query(CDbCriteria, true) 1401 */ 1402 public function findAll($condition='',$params=array()) 1403 { 1404 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1405 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1406 return $this->query($criteria,true); 1407 } 1408 1409 /** 1410 * Finds a single active record with the specified primary key. 1411 * See {@link find()} for detailed explanation about $condition and $params. |
#5 |
+
–
/home/nick22/public_html/protected/modules/blog/models/Terms.php(230): CActiveRecord->findAll(CDbCriteria) 225 left join ((select wp_term_taxonomy.term_id from wp_term_taxonomy ) as c) on (c.term_id = wp_term_taxonomy.parent)'; 226 $crit->condition = 'wp_term_taxonomy.taxonomy = "category" and parent = :parentid'; 227 $crit->params = array(':parentid' => "$id"); 228 $crit->order = 'name asc'; 229 $crit->group = 'name'; 230 $posts = $this->findAll($crit); 231 232 233 return $posts; 234 235 |
#6 |
+
–
/home/nick22/public_html/protected/modules/blog/components/BlogComponent.php(58): Terms->getCategoriesByParentId("0") 53 } 54 55 public function getChildrenModels($id = 0) { 56 57 $tmp = array(); 58 $cats = Terms::model()->getCategoriesByParentId($id); 59 return $cats; 60 } 61 62 public function getLatestPosts($count = 5) 63 { |
#7 |
+
–
/home/nick22/public_html/protected/modules/blog/components/BlogComponent.php(85): BlogComponent->getChildrenModels("0") 80 81 } 82 83 public function getSidebar($root = 0) { 84 85 $children = $this->getChildrenModels($root); 86 $tmp = '<div id="blog-categories" class="side-block"><div class="title">Blog Categories</div><div class="side-content">'; 87 88 89 90 |
#8 |
+
–
/home/nick22/public_html/protected/components/Controller.php(79): BlogComponent->getSidebar("0") 74 public function getSidebars() { 75 if ($sides = Sidebar::model()->getSidebarsByRouteView($this->route,$this->view)) { 76 foreach ($sides as $s) { 77 if ($component = $s->component) { 78 if ($function = $s->function) { 79 $this->sidebar[] = Yii::app()->$component->$function($s->param); 80 } 81 } 82 } 83 } 84 } |
#9 |
+
–
/home/nick22/public_html/protected/views/layouts/column1.php(8): Controller->getSidebars() 03 04 <?php 05 06 07 08 $this->getSidebars(); 09 /* 10 $social = '<div class="social-links" style="position:relative;left:-10px;" > 11 <div class="social" style="float:none;"> 12 <ul style="list-type:none; display:inline;"> 13 <li> |
#10 |
+
–
/home/nick22/public_html/yii/framework/web/CBaseController.php(127): require("/home/nick22/public_html/protected/views/layouts/column1.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#11 |
+
–
/home/nick22/public_html/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/nick22/public_html/protected/views//layouts/column1.php", array("content" => "
<div class="content-main">
<div class="body-content">
<..."), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#12 |
+
–
/home/nick22/public_html/yii/framework/web/CController.php(786): CBaseController->renderFile("/home/nick22/public_html/protected/views//layouts/column1.php", array("content" => "
<div class="content-main">
<div class="body-content">
<..."), true) 781 { 782 if($this->beforeRender($view)) 783 { 784 $output=$this->renderPartial($view,$data,true); 785 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 786 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 787 788 $this->afterRender($view,$output); 789 790 $output=$this->processOutput($output); 791 |
#13 |
+
–
/home/nick22/public_html/protected/modules/blog/controllers/PostController.php(27): CController->render("view") 22 $this->render('search'); 23 } 24 25 public function actionView() 26 { 27 $this->render('view'); 28 } 29 30 public function actionCategory() { 31 32 if ($params = $this->getActionParams()) { |
#14 |
+
–
/home/nick22/public_html/yii/framework/web/actions/CInlineAction.php(50): PostController->actionView() 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 } |
#15 |
+
–
/home/nick22/public_html/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("id" => "245")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#16 |
+
–
/home/nick22/public_html/yii/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#17 |
+
–
/home/nick22/public_html/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#18 |
+
–
/home/nick22/public_html/yii/framework/web/CWebApplication.php(276): CController->run("view") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#19 |
+
–
/home/nick22/public_html/yii/framework/web/CWebApplication.php(135): CWebApplication->runController("blog/post/view/id/245") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#20 |
+
–
/home/nick22/public_html/yii/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#21 |
+
–
/home/nick22/public_html/index.php(24): CApplication->run() 19 $app = Yii::createWebApplication($config); 20 // adding Zend Framework autoloader 21 Yii::import('application.vendors.*'); 22 Yii::import("application.components.EZendAutoloader", true); 23 Yii::registerAutoloader(array('EZendAutoloader','loadClass'), true); 24 $app->run(); 25 26 27 28 29 // adding Zend Framework autoloader |