PHP warning

Undefined array key "submenu"

/customers/5/4/5/bdclab.dk/httpd.www/themes/classic/views/site/productDetail.php(7)

01 <div class="row-fluid">
02     <?php
03     $column = $this->columnContent;
04 
05     foreach ($column as $key => $value) {
06         echo '<div class="' . $key . ' span' . $value['span'] . '">';
07         if (1 == $value['submenu']) {
08             $this->widget('application.myWidgets.SubMenuWidget'
09                     , array(
10                 'menu' => $this->makeSubmenu()
11                     )
12             );
13         }
14         $i = 0;
15         foreach ($value['content'] as $k => $v) {
16             if ($v['alias'] == 'widget_text') {
17                 if($i!=0){
18                     echo '<div class="textHolder">';
19                 }

Stack Trace

#4
+
 /customers/5/4/5/bdclab.dk/httpd.www/protected/controllers/SiteController.php(627): CController->render("productDetail")
622     public function actionProductList() {
623         $this->render('productList');
624     }
625 
626     public function actionProductDetail() {
627         $this->render('productDetail');
628     }
629 
630     public function actionProductCatList() {
631         $this->render('productCatList');
632     }
#5
+
 /customers/5/4/5/bdclab.dk/httpd.www/protected/controllers/SiteController.php(133): SiteController->actionProductDetail()
128                         break;
129                     case 17:
130                         $this->actionProductList();
131                         break;
132                     case 18:
133                         $this->actionProductDetail();
134                         break;
135                     default:
136 
137                         $this->actionTypeText();
138 
#13
+
 /customers/5/4/5/bdclab.dk/httpd.www/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-29 11:47:59 Apache Yii Framework/1.1.12