Notice (8): Undefined index: type [APP/Controller/NotificationsController.php, line 256]Code Context
public function mark_read(){
if($_POST['type']==1){
NotificationsController::mark_read() - APP/Controller/NotificationsController.php, line 256
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 261]Code Context setcookie('daily_notifications', implode(',',$read), time() + (86400), "/");
}
if($_POST['type']==2){
NotificationsController::mark_read() - APP/Controller/NotificationsController.php, line 261
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: id [APP/Controller/NotificationsController.php, line 266]Code Context $id = $_SESSION['admin']['id'];
}
$data = $this->Notification->details('user_id','read_notifications rn','user_id = '.$id);
NotificationsController::mark_read() - APP/Controller/NotificationsController.php, line 266
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