PHP warning

Undefined variable $submenu

/customers/5/4/5/bdclab.dk/httpd.www/protected/components/ControllerS.php(104)

092                 $submenu = $this->getSubmenu($value['id_page'], $count);
093             }
094             if (isset($this->breadcrumbs[$value['alias']])) {
095                 $active = true;
096             } else {
097                 $active = false;
098             }
099             $temp = array(
100                 'alias' => $value['alias'],
101                 'title' => $value['title'],
102                 'url' => $parentAlias . $value['alias'],
103                 'active' => $active,
104                 'subpage' => $submenu
105             );
106             array_push($menuArray, $temp);
107         }
108         return $menuArray;
109     }
110 
111     /**
112      * pobierz alias pierwszej popdstrony
113      * 
114      */
115     public function getFirstSubpage($id) {
116         $menu = Pages::model()->findBySql("select alias

Stack Trace

#0
+
 /customers/5/4/5/bdclab.dk/httpd.www/protected/components/ControllerS.php(198): ControllerS->getSubmenu("247", 10000001)
193                 $parentAlias = '';
194             }
195             $submenu = '';
196             if (isset($this->breadcrumbs[$value['alias']])) {
197                 $active = true;
198                 $submenu = $this->getSubmenu($value['id_page'], 10000000);
199             } else {
200                 $active = false;
201             }
202             $temp = array(
203                 'id_page'=>$value['id_page'],
#1
+
 /customers/5/4/5/bdclab.dk/httpd.www/themes/classic/views/site/pageText.php(10): ControllerS->makeSubmenu()
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    
15         foreach ($value['content'] as $k => $v) {
#6
+
 /customers/5/4/5/bdclab.dk/httpd.www/protected/controllers/SiteController.php(554): CController->render("pageText")
549      * strony tekstowe
550      */
551     public function actionTypeText() {
552 
553 
554         $this->render('pageText');
555     }
556 
557     /**
558      * lista stron tekstowych
559      */
2024-03-28 08:50:18 Apache Yii Framework/1.1.12