CException

Property "DriversController.contact_phone" is not defined.

/var/www/bycar.su/protected/views/layouts/main.php(152)

140                         </li>
141                     <?php } ?>
142                     <?php /*foreach ($this->locations as $l) {?>
143                         <?php if ($l->id != $_GET['location']->id) {?>
144                             <li class="lang__val"><a class="currency__opt" href="<?=((Yii::app()->language != Yii::app()->sourceLanguage)? '/' . Yii::app()->language . '':'');?>/<?php echo $l->url;?>"><?php echo $l->name;?></a></li>
145                         <?php } ?>
146                     <?php } */?>
147                 </ul>
148 
149             </div>
150             <div class="phone_mobile_view">
151                 <div class="header-social">
152                     <a href="https://wa.me/<?=preg_replace('/[^0-9]/', '', $this->contact_phone)?>"><?=$this->contact_phone?></a>
153                 </div>
154             </div>
155             <div class="button-navbar-toggle">
156                 <span class="menu-title"><?=Yii::t('layouts', 'Меню')?></span>
157             </div>
158 
159 
160         </div>
161     </nav>
162 </header>
163 
164 <div class="wrapper">

Stack Trace

#0
+
 /var/www/bycar.su/protected/views/layouts/main.php(152): CComponent->__get("contact_phone")
147                 </ul>
148 
149             </div>
150             <div class="phone_mobile_view">
151                 <div class="header-social">
152                     <a href="https://wa.me/<?=preg_replace('/[^0-9]/', '', $this->contact_phone)?>"><?=$this->contact_phone?></a>
153                 </div>
154             </div>
155             <div class="button-navbar-toggle">
156                 <span class="menu-title"><?=Yii::t('layouts', 'Меню')?></span>
157             </div>
#4
+
 /var/www/bycar.su/protected/controllers/DriversController.php(59): CController->render("index", array("model" => DriversForm, "isSubmited" => false))
54                 }
55 
56                 return;
57             }
58         }
59         $this->render('index', compact('model', 'isSubmited'));
60     }
61 
62     public function actionRules()
63     {
64         $text = Setting::model()->findByAttributes(['k' => Setting::DRIVER_TERMS])->v;
#12
+
 /var/www/bycar.su/index.php(25): CApplication->run()
20 // specify how many levels of call stack should be shown in each log message
21 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
22 
23 require_once($yii);
24 require_once('./Mobile_Detect.php');
25 Yii::createWebApplication($config)->run();
26 
2024-03-19 09:28:57 nginx/1.14.0 Yii Framework/1.1.14