Subversion Repositories SmartDukaan

Rev

Rev 14517 | Rev 14685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14517 Rev 14561
Line 61... Line 61...
61
 * @return void
61
 * @return void
62
 */
62
 */
63
	public function admin_add() {
63
	public function admin_add() {
64
		if ($this->request->is('post')) {
64
		if ($this->request->is('post')) {
65
			$url = $this->apihost."exceptionalNlc/addExceptionalNlc";
65
			$url = $this->apihost."exceptionalNlc/addExceptionalNlc";
-
 
66
			$data = $this->request->data['Exceptionalnlc'];
-
 
67
			$url = $this->generateMultiUrl($url,$data);
66
			$jsonVar = json_encode($this->request->data['Exceptionalnlc'], JSON_NUMERIC_CHECK );
68
			$jsonVar = json_encode($data, JSON_NUMERIC_CHECK );
67
			$response = $this->make_request($url,$jsonVar);
69
			$response = $this->make_request($url,$jsonVar);
68
			if (key($response)) {
70
			if (key($response)) {
69
				$this->Session->setFlash(current($response));
71
				$this->Session->setFlash(current($response));
70
				return $this->redirect(array('action' => 'index'));
72
				return $this->redirect(array('action' => 'index'));
71
			} else {
73
			} else {