PHP notice

Undefined variable: mdel

/home/h/huysmotor2/lavavto/public_html/protected/views/page/page.php(1)

1 <?php $this->pageTitle = 'LavAvto - '.$mdel->title;?>
2 <h1 class="product_title"><?php echo $model->title?></h1>
3 <p>
4     <?php echo $model->desc?>
5 </p>

Stack Trace

#4
+
 /home/h/huysmotor2/lavavto/public_html/protected/controllers/PageController.php(14): CController->render("page", array("model" => Page))
09 
10         $model = $this->loadModel($id);
11         
12         
13         
14         $this->render('page', array('model'=>$model));
15         
16         
17     }
18 
19 
#12
+
 /home/h/huysmotor2/lavavto/public_html/common/components/WebApplication.php(33): CWebApplication->runController("page/view/id/2")
28      * that Apache polls its processes to see if they're alive. This function causes
29      * Yii to respond without logging errors.
30      */
31     public function runController($route) {
32         try {
33             parent::runController($route);
34         } catch (CHttpException $e) {
35             if (@$_SERVER['REQUEST_METHOD'] == 'OPTIONS' && @$_SERVER['REQUEST_URI'] == '*') {
36                 Yii::app()->end('Hello, friend!');
37             } else
38                 throw $e;
#15
+
 /home/h/huysmotor2/lavavto/public_html/index.php(44): CApplication->run()
39 EZendAutoloader::$basePath = Yii::getPathOfAlias('common.lib') . DIRECTORY_SEPARATOR;
40 
41 Yii::registerAutoloader(array("EZendAutoloader", "loadClass"), true);
42 */
43 
44 $app->run();
45 
46 /* uncomment if you wish to debug your resulting config */
47 /* echo '<pre>' . dump($config) . '</pre>'; */
2024-03-19 09:52:20 Apache/2.2.29 (Gentoo) PHP/7.1.33 Yii Framework/1.1.12