Added to Favorites
/home/bfs/framework/web/CHttpRequest.php(657)
645 /** 646 * Redirects the browser to the specified URL. 647 * @param string $url URL to be redirected to. If the URL is a relative one, the base URL of 648 * the application will be inserted at the beginning. 649 * @param boolean $terminate whether to terminate the current application 650 * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} 651 * for details about HTTP status code. This parameter has been available since version 1.0.4. 652 */ 653 public function redirect($url,$terminate=true,$statusCode=302) 654 { 655 if(strpos($url,'/')===0) 656 $url=$this->getHostInfo().$url; 657 header('Location: '.$url, true, $statusCode); 658 if($terminate) 659 Yii::app()->end(); 660 } 661 662 /** 663 * Returns the user preferred language. 664 * The returned language ID will be canonicalized using {@link CLocale::getCanonicalID}. 665 * This method returns false if the user does not have language preference. 666 * @return string the user preferred language. 667 */ 668 public function getPreferredLanguage() 669 {
#0 |
+
–
/home/bfs/framework/web/CHttpRequest.php(657): header("Location: https://www.businesses-spain.com/", true, 302) 652 */ 653 public function redirect($url,$terminate=true,$statusCode=302) 654 { 655 if(strpos($url,'/')===0) 656 $url=$this->getHostInfo().$url; 657 header('Location: '.$url, true, $statusCode); 658 if($terminate) 659 Yii::app()->end(); 660 } 661 662 /** |
#1 |
+
–
/home/bfs/framework/web/CController.php(1027): CHttpRequest->redirect("https://www.businesses-spain.com/", true, 302) 1022 if(is_array($url)) 1023 { 1024 $route=isset($url[0]) ? $url[0] : ''; 1025 $url=$this->createUrl($route,array_splice($url,1)); 1026 } 1027 Yii::app()->getRequest()->redirect($url,$terminate,$statusCode); 1028 } 1029 1030 /** 1031 * Refreshes the current page. 1032 * The effect of this method call is the same as user pressing the |
#2 |
+
–
/home/bfs/public_html/protected/controllers/EstateController.php(309): CController->redirect("/") 304 //echo Yii::t('property','Deleted from Favorites'); 305 } 306 if(isset($_GET['add']) || isset($_GET['del'])) { 307 if(!isset($_GET['ajax'])) { 308 $referer = Yii::app()->request->getUrlReferrer(); 309 $this->redirect(is_null($referer) ? '/' : $referer); 310 $this->render('_favorites'); 311 return; 312 } else { 313 return; 314 } |
#3 |
+
–
/home/bfs/framework/web/actions/CInlineAction.php(50): EstateController->actionFavorites() 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 } |
#4 |
+
–
/home/bfs/framework/web/CController.php(300): CInlineAction->runWithParams(array("add" => "1288", "language" => "en")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#5 |
+
–
/home/bfs/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#6 |
+
–
/home/bfs/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#7 |
+
–
/home/bfs/framework/web/CWebApplication.php(277): CController->run("favorites") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/home/bfs/framework/web/CWebApplication.php(136): CWebApplication->runController("estate/favorites") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/home/bfs/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#10 |
+
–
/home/bfs/public_html/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |