PHP warning

Undefined array key "i"

/home1/pushpcqz/public_html/pushpagiri.in/themes/user/views/package/list.php(69)

57 <?php } ?>
58 
59 
60 
61 </div>
62   </div>
63 </section>
64 <script>
65 
66 var acc = document.getElementsByClassName("accordion-package");
67 var i,j;
68 
69 var lid = "acc_"+'<?=$_GET['i']?>';
70 
71 var accord = document.getElementById(lid);
72 
73   var firstAccordion = accord;
74   var firstPanel = firstAccordion.nextElementSibling;
75   firstAccordion.classList.add("active");
76   firstPanel.style.maxHeight = firstPanel.scrollHeight + "px";
77 
78 for (i = 0; i < acc.length; i++) {
79   acc[i].addEventListener("click", function() {
80 
81    

Stack Trace

#4
+
 /home1/pushpcqz/public_html/pushpagiri.in/protected/controllers/PackageController.php(107): CController->render("list", array("data" => array(Package, Package, Package, Package, ...)))
102         $model = new Package();
103         //$data=$model->findAll(array("condition"=>"status='1'"),array("order"=>"priority is NULL,priority ASC,id DESC"));
104         $data=$model->findAll(array("order"=>"priority is NULL,priority ASC,id DESC", "condition"=>"status='1' and checkup='1'"));
105         
106         //print_r($data);
107         $this->render("list",array('data'=>$data));
108     }
109     
110     public function actionEarly_cancer_detection($id=NULL,$title=NULL)
111     {    
112         
#12
+
 /home1/pushpcqz/public_html/pushpagiri.in/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
13 
14 
15 
16 
2024-03-19 11:07:29 Apache Yii Framework/1.1.14