| Line 69... |
Line 69... |
| 69 |
$form_val['_id'] = $this->request->data['Dealobjects']['id'];
|
69 |
$form_val['_id'] = $this->request->data['Dealobjects']['id'];
|
| 70 |
|
70 |
|
| 71 |
$form_val['startDate'] = $this->request->data['Dealobjects']['startDate'];
|
71 |
$form_val['startDate'] = $this->request->data['Dealobjects']['startDate'];
|
| 72 |
$form_val['endDate'] = $this->request->data['Dealobjects']['endDate'];
|
72 |
$form_val['endDate'] = $this->request->data['Dealobjects']['endDate'];
|
| 73 |
$form_val['otherInfo'] = $rankandcat;
|
73 |
$form_val['otherInfo'] = $rankandcat;
|
| 74 |
|
- |
|
| - |
|
74 |
$form_val['offer_id'] = $this->request->data['Dealobjects']['OfferId'];
|
| 75 |
$url = $this->apihost."featuredDeals/addFeaturedDealObject";
|
75 |
$url = $this->apihost."featuredDeals/addFeaturedDealObject";
|
| 76 |
$response = $this->make_request($url,json_encode($form_val,JSON_NUMERIC_CHECK));
|
76 |
$response = $this->make_request($url,json_encode($form_val,JSON_NUMERIC_CHECK));
|
| 77 |
|
- |
|
| 78 |
|
- |
|
| 79 |
if (key($response)) {
|
77 |
if (key($response)) {
|
| 80 |
$this->Session->setFlash(current($response));
|
78 |
$this->Session->setFlash(current($response));
|
| 81 |
return $this->redirect(array('action' => 'index'));
|
79 |
return $this->redirect(array('action' => 'index'));
|
| 82 |
} else {
|
80 |
} else {
|
| 83 |
$this->Session->setFlash(current($response));
|
81 |
$this->Session->setFlash(current($response));
|