PHP error

Array and string offset access syntax with curly braces is deprecated

/home/bangsaonline/public_html/protected/views/front/kanal/detail.php(109)

097                                 
098                                     <?php foreach($data as $keys => $listberita): ?>
099                                     <?php if ($keys == 0){ continue; } ?>
100                                     <!--~~~~~ Start Post ~~~~~-->
101                                     <div class="col-lg-60">
102                                         <article class="post hentry post-list post-list-small">
103                                             <?php 
104                                                 if(!empty($listberita['filename'])):
105                                             ?>
106                                             <div class="entry-thumb">
107                                                 <figure class="thumb-wrap">
108                                                     <?php 
109                                                     $captions_t_{$keys} = ($listberita['caption_title'])? $listberita['caption_title'] : $listberita['caption_desc'];
110                                                     ?>
111                                                     <a href="<?php echo get_link_berita('berita',$listberita['news_id'],$listberita['news_slug']);?>">
112                                                         <?php echo get_image($listberita['filename'],"berita",'150x150',$captions_t_{$keys}); ?>
113                                                     </a>
114                                                 </figure><!--./ thumb-wrap -->
115                                             </div><!--./ entry-thumb -->
116                                             <?php endif; ?>
117                                             <div class="content-entry-wrap" <?php if(empty($listberita['filename'])){ ?>style="width:100%!important"<?php } ?> >
118                                                 <div class="entry-content">
119                                                     <h3 class="entry-title">
120                                                         <a href="<?php echo get_link_berita('berita',$listberita['news_id'],$listberita['news_slug']);?>"><?php echo $listberita['news_title']; ?></a>
121                                                     </h3><!--./ entry-title -->

Stack Trace

#4
+
 /home/bangsaonline/public_html/protected/controllers/front/KanalController.php(88): CController->render("detail", array("data" => array(array("category_id" => "61", "category_slug" => "pesantren", "category_name" => "Pesantren", "post_id" => "150206", ...), array("category_id" => "61", "category_slug" => "pesantren", "category_name" => "Pesantren", "post_id" => "150055", ...), array("category_id" => "61", "category_slug" => "pesantren", "category_name" => "Pesantren", "post_id" => "150029", ...), array("category_id" => "61", "category_slug" => "pesantren", "category_name" => "Pesantren", "post_id" => "149867", ...), ...), "item_count" => "816", "page_size" => 12, "pages" => CPagination, ...))
83                 $this->render('detail', array(
84                                 'data'         => $dataReader['data'],
85                                 'item_count'=> $dataReader['count']['postnum'],
86                                 'page_size' => $limit,
87                                 'pages'        => $pages,
88                                 'slug'    => "/kanal/".$dataReader['data'][0]['category_slug'],
89                 ));
90             }else{
91                 throw new CHttpException(404,'Maaf, Kategori yang anda cari tidak memiliki berita');
92             }
93             
#14
+
 /home/bangsaonline/public_html/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24  
25         $this->owner->run(); // Run application.
26     }
27  
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#16
+
 /home/bangsaonline/public_html/index.php(24): CComponent->__call("runEnd", array("front"))
19 defined('YII_DEBUG_DISPLAY_TIME') or define('YII_DEBUG_DISPLAY_TIME', false);
20 if (YII_DEBUG_DISPLAY_TIME)
21     echo Yii::getLogger()->getExecutionTime();
22 
23 require_once($yii);
24 Yii::createWebApplication($config)->runEnd('front');
25 //echo "Using ", memory_get_peak_usage(1), " bytes of ram.";
26 
2026-05-09 16:08:06 Apache Yii Framework/1.1.14