PHP notice

Undefined variable: stt

/home/tamlinhbuath/domains/tamlinhbuathai.com/public_html/protected/views/user/product/tag.php(45)

33                                 $price = $valueP['price'];
34                                 ?>
35                                 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-6 wow fadeInDown text-center margin-bottom-30 _margin-mb">
36                                     <div class="_imgsp hover14">
37                                         <a href="<?php echo $link; ?>" title="<?php echo $name; ?>">
38                                             <figure><img src="<?php echo $img; ?>" alt="<?php echo $name; ?>" /></figure>
39                                         </a>
40                                         <div class="_viewed"><i class="fas fa-eye"></i> Lượt xem: <?= $view; ?></div>
41                                     </div>
42                                     <div class="_namepr"><a href="<?php echo $link; ?>" title="<?php echo $name; ?>"><?php echo $name; ?></a></div>
43                                 </div>
44                                 <?php
45                                 if ($stt % 3 == 0) {
46                                     ?>
47                                     <div class="clearfix"></div>
48                                     <?php
49                                 }
50                             }
51                         } else {
52                             ?>
53                             <div class="col-md-12"><h3><?php echo Yii::t('main', 'No matching results were found'); ?></h3></div>
54                             <?php
55                         }
56                         ?>
57 

Stack Trace

#4
+
 /home/tamlinhbuath/domains/tamlinhbuathai.com/public_html/protected/controllers/user/ProductController.php(74): CController->render("tag", array("models" => array(MProducts, MProducts), "pages" => CPagination))
69         $pages->pageSize = $this->limitPost;
70         $pages->applyLimit($criteria);
71         $models = MProducts::model()->findAll($criteria);
72         /* End custom search */
73         if (!$this->is_mobile) {
74             $this->render('tag', array('models' => $models, 'pages' => $pages));
75         } else {
76             $this->render('tag_mobile', array('models' => $models, 'pages' => $pages));
77         }
78     }
79 
#12
+
 /home/tamlinhbuath/domains/tamlinhbuathai.com/public_html/protected/components/WebApplication.php(18): CApplication->run()
13 
14     public function runEnd($name) {
15         $this->__name = $name;
16         $this->onRunEnd = array(&$this, 'changePath');
17         $this->onRunEnd(new CEvent($this->owner));
18         $this->owner->run();
19     }
20 
21     public function onRunEnd(CEvent $event) {
22         $this->raiseEvent('onRunEnd', $event);
23     }
#15
+
 /home/tamlinhbuath/domains/tamlinhbuathai.com/public_html/index.php(13): CComponent->__call("runEnd", array("user"))
08 // remove the following lines when in production mode
09 defined('YII_DEBUG') or define('YII_DEBUG', true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
12 require_once($yii);
13 Yii::createWebApplication($config)->runEnd('user');
14 
15 
2024-03-19 13:09:44 Apache/2 Yii Framework/1.1.15