/nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CHttpRequest.php(509)
00497: /**
00498: * Redirects the browser to the specified URL.
00499: * @param string URL to be redirected to. If the URL is a relative one, the base URL of
00500: * the application will be inserted at the beginning.
00501: * @param boolean whether to terminate the current application
00502: * @param integer the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
00503: * for details about HTTP status code. This parameter has been available since version 1.0.4.
00504: */
00505: public function redirect($url,$terminate=true,$statusCode=302)
00506: {
00507: if(strpos($url,'/')===0)
00508: $url=$this->getHostInfo().$url;
00509: header('Location: '.$url, true, $statusCode);
00510: if($terminate)
00511: Yii::app()->end();
00512: }
00513:
00514: /**
00515: * @return string the user preferred language.
00516: * The returned language ID will be canonicalized using {@link CLocale::getCanonicalID}.
00517: * This method returns false if the user does not have language preference.
00518: */
00519: public function getPreferredLanguage()
00520: {
00521: if($this->_preferredLanguage===null)
#0 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CHttpRequest.php(509): header() #1 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/auth/CWebUser.php(307): CHttpRequest->redirect() #2 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/auth/CAccessControlFilter.php(124): CWebUser->loginRequired() #3 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/auth/CAccessControlFilter.php(107): CAccessControlFilter->accessDenied() #4 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/filters/CFilter.php(42): CAccessControlFilter->preFilter() #5 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CController.php(986): CAccessControlFilter->filter() #6 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/filters/CInlineFilter.php(62): TestController->filterAccessControl() #7 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/filters/CFilterChain.php(129): CInlineFilter->filter() #8 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CController.php(286): CFilterChain->run() #9 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CController.php(260): TestController->runActionWithFilters() #10 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CWebApplication.php(323): TestController->run() #11 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/web/CWebApplication.php(123): CWebApplication->runController() #12 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/framework/base/CApplication.php(138): CWebApplication->processRequest() #13 /nfs/c06/h04/mnt/91441/domains/bitsexam.com/html/index.php(10): CWebApplication->run()