/home/livesimo/public_html/yii-1.1.7.r3135/framework/db/CDbCommand.php(518)
506 return $result; 507 } 508 catch(Exception $e) 509 { 510 if($this->_connection->enableProfiling) 511 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 512 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 513 $message = $e->getMessage(); 514 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 515 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 516 if(YII_DEBUG) 517 $message .= '. The SQL statement executed was: '.$this->getText().$par; 518 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 519 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 520 } 521 } 522 523 /** 524 * Builds a SQL SELECT statement from the given query specification. 525 * @param array $query the query specification in name-value pairs. The following 526 * query options are supported: {@link select}, {@link distinct}, {@link from}, 527 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 528 * {@link limit}, {@link offset} and {@link union}. 529 * @return string the SQL statement 530 * @since 1.1.6
| #0 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/db/CDbCommand.php(376): CDbCommand->queryInternal("fetchAll", array(2), array()) 371 * An empty array is returned if the query results in nothing. 372 * @throws CException execution failed 373 */ 374 public function queryAll($fetchAssociative=true,$params=array()) 375 { 376 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 377 } 378 379 /** 380 * Executes the SQL statement and returns the first row of the result. 381 * This is a convenient method of {@link query} when only the first row of data is needed. |
| #1 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/db/ar/CActiveRecord.php(1256): CDbCommand->queryAll() 1251 if(empty($criteria->with)) 1252 { 1253 if(!$all) 1254 $criteria->limit=1; 1255 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1256 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1257 } 1258 else 1259 { 1260 $finder=new CActiveFinder($this,$criteria->with); 1261 return $finder->query($criteria,$all); |
| #2 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/db/ar/CActiveRecord.php(1380): CActiveRecord->query(CDbCriteria, true) 1375 */ 1376 public function findAll($condition='',$params=array()) 1377 { 1378 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1379 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1380 return $this->query($criteria,true); 1381 } 1382 1383 /** 1384 * Finds a single active record with the specified primary key. 1385 * See {@link find()} for detailed explanation about $condition and $params. |
| #3 |
+
–
/home/livesimo/public_html/protected/components/HomePageAdsGallery.php(15): CActiveRecord->findAll(CDbCriteria) 10 $criteria->select = array('id','title','price','opt_price','area','photos'); 11 $criteria->condition = "homepage = 1 AND public = 1"; 12 if ($this->selectedLocation!='') 13 $criteria->addCondition("area = '{$this->selectedLocation}'"); 14 $criteria->order = "create_time DESC"; 15 $ads = Annonce::model()->findAll($criteria); 16 $this->render('HomePageAdsGallery',array('ads'=>$ads)); 17 } 18 } |
| #4 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(166): HomePageAdsGallery->run() 161 return ob_get_clean(); 162 } 163 else 164 { 165 $widget=$this->createWidget($className,$properties); 166 $widget->run(); 167 return $widget; 168 } 169 } 170 171 /** |
| #5 |
+
–
/home/livesimo/public_html/themes/classified/views/site/home.php(6): CBaseController->widget("HomePageAdsGallery", array("selectedLocation" => "a,1179,MEN-DON'T-TELL-MOVIE-(1993)-PETER-STRAUSS")) 01 <?php 02 include_once(Yii::getPathOfAlias("webroot").'/protected/modules/Core/extensions/web/helpers/FlexImage.php'); 03 include_once(Yii::getPathOfAlias("webroot").'/protected/modules/Core/extensions/web/helpers/string.php'); 04 ?> 05 06 <?php $this->widget('HomePageAdsGallery',array('selectedLocation'=>$this->get('location',''))); ?> 07 <div class="main-content"> 08 <?php $this->widget('AdsCategoryList',array('selectedLocation'=>$this->get('location',''))); ?> 09 <div class="facebook"> 10 <fb:like href="<?php echo baseUrl(); ?>" send="false" width="450" show_faces="false"></fb:like> 11 </div> |
| #6 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(119): require("/home/livesimo/public_html/themes/classified/views/site/home.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
| #7 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/livesimo/public_html/themes/classified/views/site/home.php", null, true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
| #8 |
+
–
/home/livesimo/public_html/protected/modules/Core/extensions/web/FController.php(101): CBaseController->renderFile("/home/livesimo/public_html/themes/classified/views/site/home.php", null, true) 096 097 public function renderFile($viewFile,$data=null,$return=false) 098 { 099 //Track the current view file so the InlineViewWidget knows which view it belong to 100 $this->CurrentViewFile = $viewFile; 101 return parent::renderFile($viewFile, $data, $return); 102 } 103 104 /** 105 * Get message of current page and also previous page 106 * |
| #9 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CController.php(866): FController->renderFile("/home/livesimo/public_html/themes/classified/views/site/home.php", null, true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
| #10 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CController.php(779): CController->renderPartial("home", null, true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 |
| #11 |
+
–
/home/livesimo/public_html/protected/controllers/SiteController.php(9): CController->render("home") 04 class SiteController extends FrontController 05 { 06 public function actionIndex(){ 07 $this->pageTitle = Settings::SITE_NAME; 08 Yii::app()->user->setState('location',$this->get('location',''),''); 09 $this->render('home'); 10 } 11 12 /** 13 * Declares class-based actions. 14 */ |
| #12 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/actions/CInlineAction.php(50): SiteController->actionIndex() 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 } |
| #13 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CController.php(300): CInlineAction->runWithParams(array("location" => "a,1179,MEN-DON'T-TELL-MOVIE-(1993)-PETER-STRAUSS")) 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; |
| #14 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/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(); |
| #15 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/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); |
| #16 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(328): CController->run("index") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #17 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(121): CWebApplication->runController("site/index") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
| #18 |
+
–
/home/livesimo/public_html/yii-1.1.7.r3135/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
| #19 |
+
–
/home/livesimo/public_html/index.php(25): CApplication->run() 20 ) 21 { 22 require_once(dirname(__FILE__).'/protected/modules/install/install.php'); 23 }else{ 24 require_once($yii); 25 Yii::createWebApplication($config)->run(); 26 } |