PHP warning

Cannot modify header information - headers already sent by (output started at /home/finddlocalrepair/public_html/protected/modules/main/controllers/DefaultController.php:1)

/home/finddlocalrepair/public_html/yii/framework/web/CHttpRequest.php(889)

877     /**
878      * Redirects the browser to the specified URL.
879      * @param string $url URL to be redirected to. Note that when URL is not
880      * absolute (not starting with "/") it will be relative to current request URL.
881      * @param boolean $terminate whether to terminate the current application
882      * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
883      * for details about HTTP status code.
884      */
885     public function redirect($url,$terminate=true,$statusCode=302)
886     {
887         if(strpos($url,'/')===0 && strpos($url,'//')!==0)
888             $url=$this->getHostInfo().$url;
889         header('Location: '.$url, true, $statusCode);
890         if($terminate)
891             Yii::app()->end();
892     }
893 
894     /**
895      * Parses an HTTP Accept header, returning an array map with all parts of each entry.
896      * Each array entry consists of a map with the type, subType, baseType and params, an array map of key-value parameters,
897      * obligatorily including a `q` value (i.e. preference ranking) as a double.
898      * For example, an Accept header value of <code>'application/xhtml+xml;q=0.9;level=1'</code> would give an array entry of
899      * <pre>
900      * array(
901      *        'type' => 'application',

Stack Trace

#2
+
 /home/finddlocalrepair/public_html/protected/modules/main/controllers/DefaultController.php(227): CController->redirect("/")
222     
223     $cri->addInCondition('cat_id',$cat_array);
224     
225     if(!Keyword::model()->exists($cri))
226     {
227         $this->redirect(Yii::app()->createUrl("main/default/index"));
228     }
229     
230     
231     $category= Yii::app()->request->getParam("category");
232     $category_name=str_replace("-", " ", $category);
#10
+
 /home/finddlocalrepair/public_html/index.php(51): CApplication->run()
46 
47 //    }
48 
49 //    PHPExcel_Shared_String::buildCharacterSets();
50 
51 $app->run();
2020-01-28 00:00:44 Apache Yii Framework/1.1.19