PHP warning

Undefined array key "color"

/home1/pushpcqz/public_html/pushpagiri.in/themes/user/views/site/contact.php(3)

01 <section class="pg-vision-and-medical-team">
02   <div class="pg-contact-sec">
03     <div  id="pg-contact-sec-in" class="<?php if($_SESSION['color']=='R'){?>pg-contact-sec-in-red<?php }else if($_SESSION['color']=='G'){?>pg-contact-sec-in-green<?php }else{?>pg-contact-sec-in <?php } ?>">
04       <h2>How <span>can we help?</span> </h2>
05       <p>Please Fill out the Form</p>
06       <div class="row">
07 
08 
09       <?php $form=$this->beginWidget('CActiveForm', array(
10             'id'=>'honqwgkiat-form',
11             'focus'=>array($model,'name'),
12               'method' => 'POST',
13             'clientOptions'=>array(
14             'validateOnSubmit'=>true,
15             //'validateOnChange'=>true,

Stack Trace

#4
+
 /home1/pushpcqz/public_html/pushpagiri.in/protected/controllers/SiteController.php(144): CController->render("contact", array("model" => Contact))
139             $this->refresh();
140             }
141             }
142         }
143         }
144         $this->render('contact',array('model'=>$model));
145     }
146 
147     public function actionPackageenquiry($id=NULL)
148     {
149         session_start();
#12
+
 /home1/pushpcqz/public_html/pushpagiri.in/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
13 
14 
15 
16 
2024-03-19 16:19:33 Apache Yii Framework/1.1.14