/var/www/vhosts/zainoo.com/httpdocs/protected/framework/db/CDbCommand.php(358)
346 { 347 if($this->_connection->enableProfiling) 348 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 349 350 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 351 $message=$e->getMessage(); 352 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 353 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 354 355 if(YII_DEBUG) 356 $message.='. The SQL statement executed was: '.$this->getText().$par; 357 358 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 359 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 360 } 361 } 362 363 /** 364 * Executes the SQL statement and returns query result. 365 * This method is for executing an SQL query that returns result set. 366 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 367 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 368 * them in this way can improve the performance. Note that if you pass parameters in this way, 369 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 370 * Please also note that all values are treated as strings in this case, if you need them to be handled as
#0 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/db/ar/CActiveRecord.php(1080): CDbCommand->execute() 1075 { 1076 Yii::trace(get_class($this).'.insert()','system.db.ar.CActiveRecord'); 1077 $builder=$this->getCommandBuilder(); 1078 $table=$this->getTableSchema(); 1079 $command=$builder->createInsertCommand($table,$this->getAttributes($attributes)); 1080 if($command->execute()) 1081 { 1082 $primaryKey=$table->primaryKey; 1083 if($table->sequenceName!==null) 1084 { 1085 if(is_string($primaryKey) && $this->$primaryKey===null) |
#1 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/db/ar/CActiveRecord.php(809): CActiveRecord->insert(null) 804 * @return boolean whether the saving succeeds 805 */ 806 public function save($runValidation=true,$attributes=null) 807 { 808 if(!$runValidation || $this->validate($attributes)) 809 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 810 else 811 return false; 812 } 813 814 /** |
#2 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/controllers/RecipeController.php(63): CActiveRecord->save() 58 $stat->region = isset($recipe->region) ? $recipe->region->id : 0; 59 $stat->city = isset($recipe->city) ? $recipe->city->id : 0; 60 $stat->country = isset($recipe->country) ? $recipe->country->id : 0; 61 //$stat->datum = (string)date('Y-m-d'); 62 63 $stat->save(); 64 65 66 spl_autoload_unregister(array('YiiBase','autoload')); 67 68 require_once($_SERVER{'DOCUMENT_ROOT'}."/protected/extensions/pdf/dompdf_config.inc.php"); |
#3 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/controllers/RecipeController.php(24): RecipeController->actionPDF() 19 } 20 21 public function actionDetail() { 22 23 if(isset($_GET{'pdf'})) { 24 $this->actionPDF(); 25 } 26 27 $this->layout = 'region'; 28 29 $recipe = isset($GLOBALS{'recipe'}) ? $GLOBALS{'recipe'} : ARRecipe::model()->findByUrl($_GET{'url'}); |
#4 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/actions/CInlineAction.php(49): RecipeController->actionDetail() 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 } |
#5 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(308): CInlineAction->runWithParams(array("pdf" => "1", "language" => "de", "country" => "italien", "region" => "emilia-romagna", ...)) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#6 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#8 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CWebApplication.php(282): CController->run("detail") 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))); |
#9 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(752): CWebApplication->runController("recipe/detail") 747 $this->run($route); 748 else 749 { 750 if($route[0]!=='/' && ($module=$this->getModule())!==null) 751 $route=$module->getId().'/'.$route; 752 Yii::app()->runController($route); 753 } 754 if($exit) 755 Yii::app()->end(); 756 } 757 |
#10 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/controllers/UrlController.php(95): CController->forward("recipe/detail") 090 } elseif($GLOBALS{'tour'}) { 091 $this->checkLocation($GLOBALS{'tour'}); 092 $this->forward('tours/detail'); 093 } elseif($GLOBALS{'recipe'}) { 094 $this->checkLocation($GLOBALS{'recipe'}); 095 $this->forward('recipe/detail'); 096 } elseif($GLOBALS{'hotel'}) { 097 $this->checkLocation($GLOBALS{'hotel'}); 098 $this->forward('hotels/detail'); 099 } 100 } |
#11 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/controllers/UrlController.php(20): UrlController->handleUrl("param3", "param4") 15 if(isset($_GET{$param})) { 16 $GLOBALS{$name} = call_user_func(array($model,'model'))->findByUrl($_GET{$param}); 17 18 if(!$GLOBALS{$name}) { 19 20 $this->handleUrl($param, $next); 21 } else { 22 $_GET{$name} = $_GET{$param}; 23 unset($_GET{$param}); 24 if(!isset($_GET{$next})) { 25 $this->forward($route); |
#12 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/controllers/UrlController.php(7): UrlController->handleParam("param3", "city", "ARCity", "cities/detail", ...) 02 class UrlController extends Controller { 03 public function actionIndex() { 04 05 $this->handleParam('param1', 'country', 'ARCountry', 'country/index', 'param2'); 06 $this->handleParam('param2', 'region', 'ARRegion', 'region/detail', 'param3'); 07 $this->handleParam('param3', 'city', 'ARCity', 'cities/detail', 'param4'); 08 $this->handleUrl('param4', 'param5'); 09 $this->handleUrl('param5', 'param6'); 10 } 11 12 protected function handleParam($param, $name, $model, $route, $next) { |
#13 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/actions/CInlineAction.php(49): UrlController->actionIndex() 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 } |
#14 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(308): CInlineAction->runWithParams(array("pdf" => "1", "language" => "de", "param1" => "italien", "param2" => "emilia-romagna", ...)) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#15 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#16 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#17 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#18 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/framework/web/CWebApplication.php(141): CWebApplication->runController("url/index") 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. |
#19 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/protected/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 /** |
#20 |
+
–
/var/www/vhosts/zainoo.com/httpdocs/index.php(18): CApplication->run() 13 // specify how many levels of call stack should be shown in each log message 14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 15 16 require_once($yii); 17 18 Yii::createWebApplication($config)->run(); |