Subversion Repositories SmartDukaan

Rev

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

Rev 14700 Rev 14886
Line 155... Line 155...
155
			return $result;
155
			return $result;
156
		}
156
		}
157
	}
157
	}
158
 
158
 
159
	public function add() {
159
	public function add() {
160
		$this->log(print_r($this->request->data,1),'orders');
-
 
161
		if ($this->request->is('post')) {
160
		if ($this->request->is('post')) {
-
 
161
			if($this->request->data['zip']){
-
 
162
				$this->request->data['rawhtml'] = gzuncompress($this->request->data['rawhtml']); 
-
 
163
			}
-
 
164
			$this->log(print_r($this->request->data,1),'orders');
162
			if(empty($this->request->data['id'])) {
165
			if(empty($this->request->data['id'])) {
163
				$this->Order->create();
166
				$this->Order->create();
164
			}
167
			}
165
			if ($this->Order->save($this->request->data)) {
168
			if ($this->Order->save($this->request->data)) {
166
				//$this->loadModel('PythonApi');	
169
				//$this->loadModel('PythonApi');