PHP warning

Undefined array key "Products"

/home2/sikder/public_html/ambalatender.com/protected/controllers/SiteController.php(63)

51     }
52 
53     /**
54      * This is the default 'index' action that is invoked
55      * when an action is not explicitly requested by users.
56      */
57     public function actionIndex() {
58         $this->layout = '//layouts/home';
59         $data['homeTender'] = new Products('search');
60         $data['homeTender']->unsetAttributes();  // clear any default values
61         $data['homeTender']->featured = 1;
62         $data['homeTender']->status = 1;
63         if (isset($_GET) && $_GET['Products']) {
64             $data['homeTender']->sorting = CHtml::encode($_GET['Products']['sorting']);
65         }
66 
67         $this->pageTitle = 'Home Page';
68 
69         $this->render('index', array(
70             'data' => $data,
71         ));
72     }
73 
74     public function actionProducts($id = '') {
75         echo $id;

Stack Trace

#7
+
 /home2/sikder/public_html/ambalatender.com/index.php(16): CApplication->run()
11 defined('YII_DEBUG') or define('YII_DEBUG',true);
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-28 21:24:17 Apache Yii Framework/1.1.15