Notice (8): Undefined index: id [APP/Controller/NotificationsController.php, line 274]Code Contextpublic function read_notification(){//echo "<pre>"; print_r($_POST);die;if(($_POST['id']=='start_batch')||($_POST['id']=='end_batch')||($_POST['id']=='cart')){NotificationsController::read_notification() - APP/Controller/NotificationsController.php, line 274 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 require - APP/webroot/index.php, line 121 [main] - ROOT/index.php, line 41
Notice (8): Undefined index: id [APP/Controller/NotificationsController.php, line 274]Code Contextpublic function read_notification(){//echo "<pre>"; print_r($_POST);die;if(($_POST['id']=='start_batch')||($_POST['id']=='end_batch')||($_POST['id']=='cart')){NotificationsController::read_notification() - APP/Controller/NotificationsController.php, line 274 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 require - APP/webroot/index.php, line 121 [main] - ROOT/index.php, line 41
Notice (8): Undefined index: id [APP/Controller/NotificationsController.php, line 274]Code Contextpublic function read_notification(){//echo "<pre>"; print_r($_POST);die;if(($_POST['id']=='start_batch')||($_POST['id']=='end_batch')||($_POST['id']=='cart')){NotificationsController::read_notification() - APP/Controller/NotificationsController.php, line 274 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 require - APP/webroot/index.php, line 121 [main] - ROOT/index.php, line 41
Notice (8): Undefined index: type [APP/Controller/NotificationsController.php, line 283]Code Context}else{if($_POST['type']==1) $user_id = $_SESSION['user']['id'];NotificationsController::read_notification() - APP/Controller/NotificationsController.php, line 283 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 require - APP/webroot/index.php, line 121 [main] - ROOT/index.php, line 41
Notice (8): Undefined index: type [APP/Controller/NotificationsController.php, line 284]Code Contextelse{if($_POST['type']==1) $user_id = $_SESSION['user']['id'];if($_POST['type']==2) $user_id = $_SESSION['admin']['id'];NotificationsController::read_notification() - APP/Controller/NotificationsController.php, line 284 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 require - APP/webroot/index.php, line 121 [main] - ROOT/index.php, line 41
Notice (8): Undefined variable: user_id [APP/Controller/NotificationsController.php, line 285]Code Contextif($_POST['type']==1) $user_id = $_SESSION['user']['id'];if($_POST['type']==2) $user_id = $_SESSION['admin']['id'];$rnl = $this->Notification->details('read_ids','read_notifications rn','user_id = '.$user_id);NotificationsController::read_notification() - APP/Controller/NotificationsController.php, line 285 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 require - APP/webroot/index.php, line 121 [main] - ROOT/index.php, line 41
Database Error Found