/home/techxcite/www/htdocs/framework/yiilite.php(8761)
8749 if(empty($this->connectionString)) 8750 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 8751 try 8752 { 8753 $this->_pdo=$this->createPdoInstance(); 8754 $this->initConnection($this->_pdo); 8755 $this->_active=true; 8756 } 8757 catch(PDOException $e) 8758 { 8759 if(YII_DEBUG) 8760 { 8761 throw new CDbException('CDbConnection failed to open the DB connection: '. 8762 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 8763 } 8764 else 8765 { 8766 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 8767 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 8768 } 8769 } 8770 } 8771 } 8772 protected function close() 8773 {
#0 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(8733): CDbConnection->open() 8728 public function setActive($value) 8729 { 8730 if($value!=$this->_active) 8731 { 8732 if($value) 8733 $this->open(); 8734 else 8735 $this->close(); 8736 } 8737 } 8738 public function cache($duration, $dependency=null, $queryCount=1) |
#1 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(8722): CDbConnection->setActive(true) 8717 } 8718 public function init() 8719 { 8720 parent::init(); 8721 if($this->autoConnect) 8722 $this->setActive(true); 8723 } 8724 public function getActive() 8725 { 8726 return $this->_active; 8727 } |
#2 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(1104): CDbConnection->init() 1099 $config=$this->_componentConfig[$id]; 1100 if(!isset($config['enabled']) || $config['enabled']) 1101 { 1102 unset($config['enabled']); 1103 $component=Yii::createComponent($config); 1104 $component->init(); 1105 return $this->_components[$id]=$component; 1106 } 1107 } 1108 } 1109 public function setComponent($id,$component,$merge=true) |
#3 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(1361): CModule->getComponent("db") 1356 { 1357 return $this->getLocale()->getDateFormatter(); 1358 } 1359 public function getDb() 1360 { 1361 return $this->getComponent('db'); 1362 } 1363 public function getErrorHandler() 1364 { 1365 return $this->getComponent('errorHandler'); 1366 } |
#4 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(7778): CApplication->getDb() 7773 { 7774 if(self::$db!==null) 7775 return self::$db; 7776 else 7777 { 7778 self::$db=Yii::app()->getDb(); 7779 if(self::$db instanceof CDbConnection) 7780 return self::$db; 7781 else 7782 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 7783 } |
#5 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(8195): CActiveRecord->getDbConnection() 8190 { 8191 if($checkScopes && ($criteria=$this->getDbCriteria(false))!==null && $criteria->alias!='') 8192 $alias=$criteria->alias; 8193 else 8194 $alias=$this->_alias; 8195 return $quote ? $this->getDbConnection()->getSchema()->quoteTableName($alias) : $alias; 8196 } 8197 public function setTableAlias($alias) 8198 { 8199 $this->_alias=$alias; 8200 } |
#6 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(8231): CActiveRecord->getTableAlias(true) 8226 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 8227 return $this->query($criteria); 8228 } 8229 public function findAllByAttributes($attributes,$condition='',$params=array()) 8230 { 8231 $prefix=$this->getTableAlias(true).'.'; 8232 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 8233 return $this->query($criteria,true); 8234 } 8235 public function findBySql($sql,$params=array()) 8236 { |
#7 |
+
–
/home/techxcite/www/htdocs/protected/modules/catalog/controllers/SpecController.php(19): CActiveRecord->findAllByAttributes(array("productId" => "137", "enable" => 1)) 14 15 Yii::app()->theme = '2555'; 16 $this->layout = '//layouts/2catalogNoCompare'; 17 18 $promotions = array(); 19 $promotionModel = ProductPromotionMap::model()->findAllByAttributes(array('productId'=>$id,'enable'=>1)); 20 21 if ($promotionModel != NULL) { 22 $promotions = Helper::promotionData($id,$promotionModel); 23 } 24 |
#8 |
unknown(0): SpecController->actionView("137", false)
|
#9 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(4208): ReflectionMethod->invokeArgs(SpecController, array("137", false)) 4203 elseif($param->isDefaultValueAvailable()) 4204 $ps[]=$param->getDefaultValue(); 4205 else 4206 return false; 4207 } 4208 $method->invokeArgs($object,$ps); 4209 return true; 4210 } 4211 } 4212 class CInlineAction extends CAction 4213 { |
#10 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(4225): CAction->runWithParamsInternal(SpecController, ReflectionMethod, array("id" => "137")) 4220 { 4221 $methodName='action'.$this->getId(); 4222 $controller=$this->getController(); 4223 $method=new ReflectionMethod($controller, $methodName); 4224 if($method->getNumberOfParameters()>0) 4225 return $this->runWithParamsInternal($controller, $method, $params); 4226 $controller->$methodName(); 4227 return true; 4228 } 4229 } 4230 class CWebUser extends CApplicationComponent implements IWebUser |
#11 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(3739): CInlineAction->runWithParams(array("id" => "137")) 3734 { 3735 $priorAction=$this->_action; 3736 $this->_action=$action; 3737 if($this->beforeAction($action)) 3738 { 3739 if($action->runWithParams($this->getActionParams())===false) 3740 $this->invalidActionParams($action); 3741 else 3742 $this->afterAction($action); 3743 } 3744 $this->_action=$priorAction; |
#12 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(3724): CController->runAction(CInlineAction) 3719 $this->missingAction($actionID); 3720 } 3721 public function runActionWithFilters($action,$filters) 3722 { 3723 if(empty($filters)) 3724 $this->runAction($action); 3725 else 3726 { 3727 $priorAction=$this->_action; 3728 $this->_action=$action; 3729 CFilterChain::create($this,$action,$filters)->run(); |
#13 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(3714): CController->runActionWithFilters(CInlineAction, array()) 3709 { 3710 if(($parent=$this->getModule())===null) 3711 $parent=Yii::app(); 3712 if($parent->beforeControllerAction($this,$action)) 3713 { 3714 $this->runActionWithFilters($action,$this->filters()); 3715 $parent->afterControllerAction($this,$action); 3716 } 3717 } 3718 else 3719 $this->missingAction($actionID); |
#14 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(1799): CController->run("view") 1794 { 1795 list($controller,$actionID)=$ca; 1796 $oldController=$this->_controller; 1797 $this->_controller=$controller; 1798 $controller->init(); 1799 $controller->run($actionID); 1800 $this->_controller=$oldController; 1801 } 1802 else 1803 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1804 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(1719): CWebApplication->runController("catalog/spec/view") 1714 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1715 $_GET[$name]=$value; 1716 } 1717 else 1718 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1719 $this->runController($route); 1720 } 1721 protected function registerCoreComponents() 1722 { 1723 parent::registerCoreComponents(); 1724 $components=array( |
#16 |
+
–
/home/techxcite/www/htdocs/framework/yiilite.php(1236): CWebApplication->processRequest() 1231 public function run() 1232 { 1233 if($this->hasEventHandler('onBeginRequest')) 1234 $this->onBeginRequest(new CEvent($this)); 1235 register_shutdown_function(array($this,'end'),0,false); 1236 $this->processRequest(); 1237 if($this->hasEventHandler('onEndRequest')) 1238 $this->onEndRequest(new CEvent($this)); 1239 } 1240 public function end($status=0,$exit=true) 1241 { |
#17 |
+
–
/home/techxcite/www/htdocs/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |