PHP notice

Undefined variable: user

/home/arduinob/domains/webdoober.com/public_html/webdoober/themes/maxthem/views/check/index.php(151)

139             background-attachment:fixed;
140             background-repeat: no-repeat;
141             background-position :  left bottom;
142             // background-color: #dff3fc;
143         }
144     }
145 </style>
146 
147 <?php
148 //$user = new UserLogin();
149 echo "<script> var baseUrl = ";
150 echo '"' . Yii::app()->baseUrl . '"; ';
151 if ($user != null) {
152     echo 'var userday ="' . $user->userBirthday . '"; ';
153 }else{
154     echo 'var userday =null';
155 }
156 echo '</script>';
157 ?>
158 
159 <h1 class="pagination-centered" style="font-size: medium;color: #333333;">ดูดวงเบอร์โทร เช็คเบอร์โทร หาตำแหน่งเบอร์โทร ที่ดีที่สุด ครอบคลุมทุกเครือข่าย มากกว่า 150 ล้านเลขหมายทั่วประเทศ</h1>
160 
161 <div class="well background hidden-phone" id='checkber'>
162 
163     <div class="form-wrapper cf" id="frm1">

Stack Trace

#4
+
 /home/arduinob/domains/webdoober.com/public_html/webdoober/protected/controllers/CheckController.php(16): CController->render("index")
11         Yii::app()->clientScript->registerMetaTag('ดูดวงเบอร์โทร เช็คเบอร์โทร หาตำแหน่งเบอร์โทร โดยละเอียด ทุกเครือข่ายมากกว่า 150 ล้านเลขหมายทั่วประเทศ', 'Description');
12 
13 
14 
15         $this->layout = "webdoober";
16         $this->render("index");
17     }
18 
19     public function actionTest() {
20         $user = new comUser();
21         $u = new UserLogin();
#12
+
 /home/arduinob/domains/webdoober.com/public_html/webdoober/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 08:58:11 Apache/2 Yii Framework/1.1.14