Subversion Repositories SmartDukaan

Rev

Rev 20284 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20284 Rev 20688
Line 585... Line 585...
585
// 					$url = Configure::read('nodeurl')."/addPushNotification";//remove hardcoded value
585
// 					$url = Configure::read('nodeurl')."/addPushNotification";//remove hardcoded value
586
// 					$this->make_request($url,json_encode($payload,JSON_NUMERIC_CHECK));
586
// 					$this->make_request($url,json_encode($payload,JSON_NUMERIC_CHECK));
587
					$this->Session->setFlash(__('Push notification scheduled for users'));
587
					$this->Session->setFlash(__('Push notification scheduled for users'));
588
					return $this->redirect(array('controller' => 'administration', 'action' => 'dashboard', 'admin' => false));
588
					return $this->redirect(array('controller' => 'administration', 'action' => 'dashboard', 'admin' => false));
589
				}else{
589
				}else{
590
					$this->Session->setFlash(__('Notification Campaign Insertion Failed. '));
590
					$this->Session->setFlash(__('Notification Campaign Insertion Failed. Due to' + $result['msg']));
591
					return $this->redirect(array('controller' => 'administration', 'action' => 'dashboard', 'admin' => false));
591
					return $this->redirect(array('controller' => 'administration', 'action' => 'dashboard', 'admin' => false));
592
				}									
592
				}									
593
			}
593
			}
594
		}
594
		}
595
	}
595
	}