/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CHttpRequest.php(1110)
1098 } 1099 1100 /** 1101 * Sends a cookie. 1102 * @param CHttpCookie $cookie cookie to be sent 1103 */ 1104 protected function addCookie($cookie) 1105 { 1106 $value=$cookie->value; 1107 if($this->_request->enableCookieValidation) 1108 $value=Yii::app()->getSecurityManager()->hashData(serialize($value)); 1109 if(version_compare(PHP_VERSION,'5.2.0','>=')) 1110 setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly); 1111 else 1112 setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure); 1113 } 1114 1115 /** 1116 * Deletes a cookie. 1117 * @param CHttpCookie $cookie cookie to be deleted 1118 */ 1119 protected function removeCookie($cookie) 1120 { 1121 if(version_compare(PHP_VERSION,'5.2.0','>=')) 1122 setcookie($cookie->name,'',0,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly);
#0 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CHttpRequest.php(1110): setcookie("YII_CSRF_TOKEN", "6c8a000ff1c3835927a38d117ba70591abe28b7c", 0, "/", ...) 1105 { 1106 $value=$cookie->value; 1107 if($this->_request->enableCookieValidation) 1108 $value=Yii::app()->getSecurityManager()->hashData(serialize($value)); 1109 if(version_compare(PHP_VERSION,'5.2.0','>=')) 1110 setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly); 1111 else 1112 setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure); 1113 } 1114 1115 /** |
#1 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CHttpRequest.php(1062): CCookieCollection->addCookie(CHttpCookie) 1057 if($cookie instanceof CHttpCookie) 1058 { 1059 $this->remove($name); 1060 parent::add($name,$cookie); 1061 if($this->_initialized) 1062 $this->addCookie($cookie); 1063 } 1064 else 1065 throw new CException(Yii::t('yii','CHttpCookieCollection can only hold CHttpCookie objects.')); 1066 } 1067 |
#2 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CHttpRequest.php(928): CCookieCollection->add("YII_CSRF_TOKEN", CHttpCookie) 923 $cookie=$this->getCookies()->itemAt($this->csrfTokenName); 924 if(!$cookie || ($this->_csrfToken=$cookie->value)==null) 925 { 926 $cookie=$this->createCsrfCookie(); 927 $this->_csrfToken=$cookie->value; 928 $this->getCookies()->add($cookie->name,$cookie); 929 } 930 } 931 932 return $this->_csrfToken; 933 } |
#3 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/base/CComponent.php(112): CHttpRequest->getCsrfToken() 107 */ 108 public function __get($name) 109 { 110 $getter='get'.$name; 111 if(method_exists($this,$getter)) 112 return $this->$getter(); 113 else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 114 { 115 // duplicating getEventHandlers() here for performance 116 $name=strtolower($name); 117 if(!isset($this->_e[$name])) |
#4 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/protected/views/layouts/main.php(53): CComponent->__get("csrfToken") 48 </script> 49 <script type="text/javascript"> 50 window.appConfig = { 51 productId: "<?php echo (isset($this->params) && isset($this->params['productId'])) ? $this->params['productId'] : 0; ?>", 52 ajaxUrl: "<?php echo Yii::app()->getBaseUrl(true) . '/ajaxViewedProducts'; ?>", 53 csrfToken: <?php echo CJSON::encode(Yii::app()->request->csrfToken); ?> 54 }; 55 </script> 56 </head> 57 58 |
#5 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CBaseController.php(127): require("/home/c/ca22449/kvintstal.ru/public_html/protected/views/layouts...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#6 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CBaseController.php(96): CBaseController->renderInternal("/home/c/ca22449/kvintstal.ru/public_html/protected/views//layout...", array("content" => "
<table>
<tbody>
<tr>
..."), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#7 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CController.php(785): CBaseController->renderFile("/home/c/ca22449/kvintstal.ru/public_html/protected/views//layout...", array("content" => "
<table>
<tbody>
<tr>
..."), true) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 789 $output=$this->processOutput($output); 790 |
#8 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/protected/controllers/TestController.php(33): CController->render("index", array("items" => array(Catalog, Catalog, Catalog, Catalog, ...))) 28 $catalog_model = Catalog::model(); 29 $items = $catalog_model->findAll($criteria); 30 foreach ($items as $item) { 31 echo '<a href="' . $item->hurl . '">' . $item->catalog_name . '</a><br/>'; 32 } 33 $this->render( 'index', ['items' => $items,]); 34 //d($items); 35 36 } 37 } |
#9 |
unknown(0): TestController->actionIndex(1)
|
#10 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(TestController, array(1)) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#11 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(TestController, ReflectionMethod, array()) 43 { 44 $methodName='action'.$this->getId(); 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 } |
#12 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CController.php(309): CInlineAction->runWithParams(array()) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#13 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#14 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#15 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CWebApplication.php(283): CController->run("") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/web/CWebApplication.php(142): CWebApplication->runController("test") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#17 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/framework1/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#18 |
+
–
/home/c/ca22449/kvintstal.ru/public_html/index.php(41): CApplication->run() 36 defined( 'YII_TRACE_LEVEL' ) or define( 'YII_TRACE_LEVEL', 1 ); 37 38 require_once($yii); 39 40 header('Content-Type: text/html; charset=utf-8'); 41 Yii::createWebApplication( $config )->run(); 42 43 $exec_time = microtime( true ) - $start_time; 44 45 if ( @$_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest' && YII_DEBUG && CMS_DEBUG && $_ENV['runAdmin'] ) { 46 list($queryCount, $queryTime) = Yii::app()->db->getStats(); |