PHP notice

Undefined index: HTTP_REFERER

/home/cierscon/public_html/protected/views/tblProfiles/view.php(5)

01 <?php
02 /* @var $this TblProfilesController */
03 /* @var $model TblProfiles */
04 $baseUrl = Yii::app()->theme->baseUrl;
05 if("https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] != $_SERVER['HTTP_REFERER']){
06     $_SESSION['prevurl'] = $_SERVER['REQUEST_URI'];
07 }
08 if(isset($_POST['button_pressed']))
09 {
10     $to = "ciersonline@gmail.com";
11     $to      = $adminEmail;
12     $subject = 'I am interested in this profile : ' . $model->user_id;
13     //$message = "Name : " . $_POST['yname'] . "\nEmail : " . $_POST['yemail'] . "\nMobile : " . $_POST['ymobile'] . "\nMessage : " . $_POST['ylet'];
14     
15     if(isset($_GET['vid']) && $_GET['vid'] > 0){
16         $last_pro_usr = 5 ;
17         $not_msg =     'I am interested in this profile : ' . $model->user_id;

Stack Trace

#4
+
 /home/cierscon/public_html/protected/controllers/TblProfilesController.php(56): CController->render("view", array("model" => TblProfiles))
51      */
52     public function actionView($id)
53     {
54         $this->render('view',array(
55             'model'=>$this->loadModel($id),
56         ));
57     }
58 
59     /**
60      * Creates a new model.
61      * If creation is successful, the browser will be redirected to the 'view' page.
#19
+
 /home/cierscon/public_html/index.php(29): CApplication->run()
24 Yii::app()->params['profcnt'] = count($conf);
25 
26     
27     
28 //Yii::createWebApplication($config)->run();
29 Yii::app()->run();
2024-03-29 05:05:39 Apache Yii Framework/1.1.15