/usr/www/users/ffaode/old/yii/framework/web/CUrlManager.php(286)
274 /** 275 * Constructs a URL. 276 * @param string $route the controller and the action (e.g. article/read) 277 * @param array $params list of GET parameters (name=>value). Both the name and value will be URL-encoded. 278 * If the name is '#', the corresponding value will be treated as an anchor 279 * and will be appended at the end of the URL. 280 * @param string $ampersand the token separating name-value pairs in the URL. Defaults to '&'. 281 * @return string the constructed URL 282 */ 283 public function createUrl($route,$params=array(),$ampersand='&') 284 { 285 unset($params[$this->routeVar]); 286 foreach($params as $i=>$param) 287 if($param===null) 288 $params[$i]=''; 289 290 if(isset($params['#'])) 291 { 292 $anchor='#'.$params['#']; 293 unset($params['#']); 294 } 295 else 296 $anchor=''; 297 $route=trim($route,'/'); 298 foreach($this->_rules as $i=>$rule)
#0 |
+
–
/usr/www/users/ffaode/old/protected/components/DLanguageUrlManager.php(6): CUrlManager->createUrl("site/site", null, "&") 01 <?php 02 class DLanguageUrlManager extends CUrlManager 03 { 04 public function createUrl($route, $params=array(), $ampersand='&') 05 { 06 $url = parent::createUrl($route, $params, $ampersand); 07 return DMultilangHelper::addLangToUrl($url); 08 } 09 } 10 ?> |
#1 |
+
–
/usr/www/users/ffaode/old/yii/framework/base/CApplication.php(543): DLanguageUrlManager->createUrl("site/site", null, "&") 538 * @param string $ampersand the token separating name-value pairs in the URL. 539 * @return string the constructed URL 540 */ 541 public function createUrl($route,$params=array(),$ampersand='&') 542 { 543 return $this->getUrlManager()->createUrl($route,$params,$ampersand); 544 } 545 546 /** 547 * Creates an absolute URL based on the given controller and action information. 548 * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. |
#2 |
+
–
/usr/www/users/ffaode/old/yii/framework/web/CController.php(967): CApplication->createUrl("site/site", null, "&") 962 $route=$this->getId().'/'.$this->getAction()->getId(); 963 elseif(strpos($route,'/')===false) 964 $route=$this->getId().'/'.$route; 965 if($route[0]!=='/' && ($module=$this->getModule())!==null) 966 $route=$module->getId().'/'.$route; 967 return Yii::app()->createUrl(trim($route,'/'),$params,$ampersand); 968 } 969 970 /** 971 * Creates an absolute URL for the specified action defined in this controller. 972 * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. |
#3 |
+
–
/usr/www/users/ffaode/old/protected/controllers/SiteController.php(513): CController->createUrl("site", null) 508 public function actionRedirect() { 509 $struct_id = Yii::app()->request->getParam('id'); 510 //get structure 511 $structure = Structure::model()->findByPk($struct_id); 512 $params = json_decode($structure->text, true); 513 $this->redirect(Yii::app()->controller->createUrl('site', $params)); 514 } 515 516 public function actionExperts() { 517 if ($_GET["test"]) { 518 $this->layout = '/layouts/redesign'; |
#4 |
+
–
/usr/www/users/ffaode/old/yii/framework/web/actions/CInlineAction.php(49): SiteController->actionRedirect() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#5 |
+
–
/usr/www/users/ffaode/old/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "6", "modparams" => "")) 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 |
+
–
/usr/www/users/ffaode/old/yii/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 |
+
–
/usr/www/users/ffaode/old/yii/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 |
+
–
/usr/www/users/ffaode/old/yii/framework/web/CWebApplication.php(282): CController->run("redirect") 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 |
+
–
/usr/www/users/ffaode/old/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/redirect") 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. |
#10 |
+
–
/usr/www/users/ffaode/old/yii/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#11 |
+
–
/usr/www/users/ffaode/old/index.php(14): CApplication->run() 09 defined('YII_DEBUG') or define('YII_DEBUG',true); 10 // specify how many levels of call stack should be shown in each log message 11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |