/var/www/appstorelabs.com/www/framework/yiilite.php(8427)
8415 if(empty($this->connectionString)) 8416 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 8417 try 8418 { 8419 $this->_pdo=$this->createPdoInstance(); 8420 $this->initConnection($this->_pdo); 8421 $this->_active=true; 8422 } 8423 catch(PDOException $e) 8424 { 8425 if(YII_DEBUG) 8426 { 8427 throw new CDbException('CDbConnection failed to open the DB connection: '. 8428 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 8429 } 8430 else 8431 { 8432 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 8433 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 8434 } 8435 } 8436 } 8437 } 8438 protected function close() 8439 {
#0 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(8399): CDbConnection->open() 8394 public function setActive($value) 8395 { 8396 if($value!=$this->_active) 8397 { 8398 if($value) 8399 $this->open(); 8400 else 8401 $this->close(); 8402 } 8403 } 8404 public function cache($duration, $dependency=null, $queryCount=1) |
#1 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(8388): CDbConnection->setActive(true) 8383 } 8384 public function init() 8385 { 8386 parent::init(); 8387 if($this->autoConnect) 8388 $this->setActive(true); 8389 } 8390 public function getActive() 8391 { 8392 return $this->_active; 8393 } |
#2 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(1060): CDbConnection->init() 1055 $config=$this->_componentConfig[$id]; 1056 if(!isset($config['enabled']) || $config['enabled']) 1057 { 1058 unset($config['enabled']); 1059 $component=Yii::createComponent($config); 1060 $component->init(); 1061 return $this->_components[$id]=$component; 1062 } 1063 } 1064 } 1065 public function setComponent($id,$component,$merge=true) |
#3 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(1312): CModule->getComponent("db") 1307 { 1308 return $this->getLocale()->getDateFormatter(); 1309 } 1310 public function getDb() 1311 { 1312 return $this->getComponent('db'); 1313 } 1314 public function getErrorHandler() 1315 { 1316 return $this->getComponent('errorHandler'); 1317 } |
#4 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(7450): CApplication->getDb() 7445 { 7446 if(self::$db!==null) 7447 return self::$db; 7448 else 7449 { 7450 self::$db=Yii::app()->getDb(); 7451 if(self::$db instanceof CDbConnection) 7452 return self::$db; 7453 else 7454 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 7455 } |
#5 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(7867): CActiveRecord->getDbConnection() 7862 { 7863 if($checkScopes && ($criteria=$this->getDbCriteria(false))!==null && $criteria->alias!='') 7864 $alias=$criteria->alias; 7865 else 7866 $alias=$this->_alias; 7867 return $quote ? $this->getDbConnection()->getSchema()->quoteTableName($alias) : $alias; 7868 } 7869 public function setTableAlias($alias) 7870 { 7871 $this->_alias=$alias; 7872 } |
#6 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(7897): CActiveRecord->getTableAlias(true) 7892 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); 7893 return $this->query($criteria,true); 7894 } 7895 public function findByAttributes($attributes,$condition='',$params=array()) 7896 { 7897 $prefix=$this->getTableAlias(true).'.'; 7898 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 7899 return $this->query($criteria); 7900 } 7901 public function findAllByAttributes($attributes,$condition='',$params=array()) 7902 { |
#7 |
+
–
/var/www/appstorelabs.com/www/protected/controllers/GoController.php(9): CActiveRecord->findByAttributes(array("short" => "Stwp7")) 04 { 05 public $layout=false; 06 07 public function actionIndex($short) 08 { 09 $shortUrl = ShortUrl::model()->findByAttributes(array('short'=>$short)); 10 if ($shortUrl == null) { 11 throw new CHttpException(404, 'Not found'); 12 } 13 $this->redirect($shortUrl->url); 14 } |
#8 |
unknown(0): GoController->actionIndex("Stwp7")
|
#9 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(4039): ReflectionMethod->invokeArgs(GoController, array("Stwp7")) 4034 elseif($param->isDefaultValueAvailable()) 4035 $ps[]=$param->getDefaultValue(); 4036 else 4037 return false; 4038 } 4039 $method->invokeArgs($object,$ps); 4040 return true; 4041 } 4042 } 4043 class CInlineAction extends CAction 4044 { |
#10 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(4056): CAction->runWithParamsInternal(GoController, ReflectionMethod, array("controller" => "go", "short" => "Stwp7")) 4051 { 4052 $methodName='action'.$this->getId(); 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser |
#11 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(3570): CInlineAction->runWithParams(array("controller" => "go", "short" => "Stwp7")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#12 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(3555): CController->runAction(CInlineAction) 3550 $this->missingAction($actionID); 3551 } 3552 public function runActionWithFilters($action,$filters) 3553 { 3554 if(empty($filters)) 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); |
#13 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array()) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#14 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(1746): CController->run("index") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(1666): CWebApplication->runController("go/index") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#16 |
+
–
/var/www/appstorelabs.com/www/framework/yiilite.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#17 |
+
–
/var/www/appstorelabs.com/www/index.php(21): CApplication->run() 16 //defined('YII_DEBUG_PROFILING') or define('YII_DEBUG_PROFILING',true); 17 //execution time 18 //defined('YII_DEBUG_DISPLAY_TIME') or define('YII_DEBUG_DISPLAY_TIME',true); 19 20 require_once($yii); 21 Yii::createWebApplication($config)->run(); 22 23 /*if(YII_DEBUG_DISPLAY_TIME) 24 echo Yii::getLogger()->getExecutionTime();*/ |