PHP notice

Undefined variable: data

/home/ipqwuyjmhosting/public_html/solaodong/protected/views/about/frontend/index.php(12)

01 <?php if($this->breadcrumbs): ?>
02     <?php $this->widget(template.'_breadcrumbs', ['breadcrumbs'=>$this->breadcrumbs]) ?>
03 <?php endif ?>
04 <div class="row">
05     <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
06         <div class="x_panel">
07             <div class="x_title text-uppercase mb20">
08                 <div class="title">Giới thiệu</div>
09             </div>
10             <div class="x_content">
11                 <ul class="list-group">
12                     <?php foreach($data as $value): ?>
13                         <li>
14                             <a href="<?= baseurl.'/gioi-thieu/'.$value['slug'] ?>"><?= $value['title'] ?></a>
15                         </li>
16                     <?php endforeach; ?>
17                 </ul>
18             </div>
19         </div>
20     </div>
21     <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
22         <?php $this->widget(template.'_sidebar') ?>
23     </div>
24 </div>

Stack Trace

#4
+
 /home/ipqwuyjmhosting/public_html/solaodong/protected/controllers/AboutController.php(11): CController->render("frontend/index", array("item" => array("record_id" => "13", "title" => "Tiểu sử, phân công nhiệm vụ Lãnh đạo", "content" => "<p align="center"><strong>TIỂU SỬ, PH&Acirc;N C&Ocirc;NG NHI...", "hit" => "4187", ...)))
06     {
07         $module = ucfirst($this->id);
08         $class = new $module;
09 
10         $this->render(template.'/index', [
11             'item' => $class->firstRecord()
12         ]);
13     }
14     public function actionView($alias)
15     {
16         $module = ucfirst($this->id);
#12
+
 /home/ipqwuyjmhosting/public_html/solaodong/public_html/index.php(15): CApplication->run()
10     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11     $config = dirname(__FILE__).'/../protected/config/projDev.php';
12 }
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-19 10:20:46 LiteSpeed Yii Framework/1.1.14