/webroot/web/carprices/yii/framework/db/CDbConnection.php(399)
387 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 388 try 389 { 390 Yii::trace('Opening DB connection','system.db.CDbConnection'); 391 $this->_pdo=$this->createPdoInstance(); 392 $this->initConnection($this->_pdo); 393 $this->_active=true; 394 } 395 catch(PDOException $e) 396 { 397 if(YII_DEBUG) 398 { 399 throw new CDbException('CDbConnection failed to open the DB connection: '. 400 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 401 } 402 else 403 { 404 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 405 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 406 } 407 } 408 } 409 } 410 411 /**
#0 |
+
–
/webroot/web/carprices/yii/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/webroot/web/carprices/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive() 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/webroot/web/carprices/yii/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/webroot/web/carprices/yii/framework/base/CApplication.php(459): CModule->getComponent() 454 * Returns the database connection component. 455 * @return CDbConnection the database connection 456 */ 457 public function getDb() 458 { 459 return $this->getComponent('db'); 460 } 461 462 /** 463 * Returns the error handler component. 464 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/webroot/web/carprices/yii/framework/db/ar/CActiveRecord.php(639): CApplication->getDb() 634 { 635 if(self::$db!==null) 636 return self::$db; 637 else 638 { 639 self::$db=Yii::app()->getDb(); 640 if(self::$db instanceof CDbConnection) 641 return self::$db; 642 else 643 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 644 } |
#5 |
+
–
/webroot/web/carprices/yii/framework/db/ar/CActiveRecord.php(1436): CActiveRecord->getDbConnection() 1431 { 1432 if($checkScopes && ($criteria=$this->getDbCriteria(false))!==null && $criteria->alias!='') 1433 $alias=$criteria->alias; 1434 else 1435 $alias=$this->_alias; 1436 return $quote ? $this->getDbConnection()->getSchema()->quoteTableName($alias) : $alias; 1437 } 1438 1439 /** 1440 * Sets the table alias to be used in queries. 1441 * @param string $alias the table alias to be used in queries. The alias should NOT be quoted. |
#6 |
+
–
/webroot/web/carprices/yii/framework/db/ar/CActiveRecord.php(1525): CActiveRecord->getTableAlias() 1520 * @return static|null the record found. Null if none is found. 1521 */ 1522 public function findByAttributes($attributes,$condition='',$params=array()) 1523 { 1524 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1525 $prefix=$this->getTableAlias(true).'.'; 1526 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1527 return $this->query($criteria); 1528 } 1529 1530 /** |
#7 |
+
–
/webroot/web/carprices/protected/controllers/ItemsController.php(420): CActiveRecord->findByAttributes() 415 $memcache = require(__DIR__ . "/../config/memcache.php"); 416 if ($memcache !== false && $memcache->get("category_model_{$make}")) { 417 $cat_model = $memcache->get("category_model_{$make}"); 418 } else { 419 //search with hyphen 420 $cat_model = Categories::model()->findByAttributes(array('title' => $make)); 421 422 //search with hyphen - some names have hyphens 423 if (!$cat_model) { 424 $make = str_replace("-", " ", $make); 425 $cat_model = Categories::model()->findByAttributes(array('title' => $make)); |
#8 |
unknown(0): ItemsController->actionView()
|
#9 |
+
–
/webroot/web/carprices/yii/framework/web/actions/CAction.php(113): ReflectionMethod->invokeArgs() 108 } elseif ($param->isDefaultValueAvailable()) 109 $ps[] = $param->getDefaultValue(); 110 else 111 return false; 112 } 113 $method->invokeArgs($object, $ps); 114 return true; 115 } 116 } |
#10 |
+
–
/webroot/web/carprices/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal() 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 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#11 |
+
–
/webroot/web/carprices/yii/framework/web/CController.php(324): CInlineAction->runWithParams() 319 $params["lang"] = $_COOKIE["lang"]; 320 } else { 321 $params["lang"] = "en"; 322 } 323 } 324 if ($action->runWithParams($params) === false) 325 $this->invalidActionParams($action); 326 else 327 $this->afterAction($action); 328 } 329 |
#12 |
+
–
/webroot/web/carprices/yii/framework/web/filters/CFilterChain.php(134): CController->runAction() 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#13 |
+
–
/webroot/web/carprices/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#14 |
+
–
/webroot/web/carprices/yii/framework/web/CController.php(1151): CFilter->filter() 1146 */ 1147 public function filterAccessControl($filterChain) 1148 { 1149 $filter = new CAccessControlFilter; 1150 $filter->setRules($this->accessRules()); 1151 $filter->filter($filterChain); 1152 } 1153 1154 /** 1155 * Returns a persistent page state value. 1156 * A page state is a variable that is persistent across POST requests of the same page. |
#15 |
+
–
/webroot/web/carprices/yii/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl() 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#16 |
+
–
/webroot/web/carprices/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter() 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#17 |
+
–
/webroot/web/carprices/yii/framework/web/CController.php(288): CFilterChain->run() 283 if (empty($filters)) 284 $this->runAction($action); 285 else { 286 $priorAction = $this->_action; 287 $this->_action = $action; 288 CFilterChain::create($this, $action, $filters)->run(); 289 $this->_action = $priorAction; 290 } 291 } 292 293 /** |
#18 |
+
–
/webroot/web/carprices/yii/framework/web/CController.php(264): CController->runActionWithFilters() 259 { 260 if (($action = $this->createAction($actionID)) !== null) { 261 if (($parent = $this->getModule()) === null) 262 $parent = Yii::app(); 263 if ($parent->beforeControllerAction($this, $action)) { 264 $this->runActionWithFilters($action, $this->filters()); 265 $parent->afterControllerAction($this, $action); 266 } 267 } else 268 $this->missingAction($actionID); 269 } |
#19 |
+
–
/webroot/web/carprices/yii/framework/web/CWebApplication.php(282): CController->run() 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))); |
#20 |
+
–
/webroot/web/carprices/yii/framework/web/CWebApplication.php(141): CWebApplication->runController() 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. |
#21 |
+
–
/webroot/web/carprices/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#22 |
+
–
/webroot/web/carprices/arabic/index.php(22): CApplication->run() 17 require_once __DIR__ . "/../vendor/autoload.php"; 18 19 $dotenv = new Dotenv\Dotenv(__DIR__ . "/../"); 20 $dotenv->overload(); 21 22 Yii::createWebApplication($config)->run(); |