Subversion Repositories SmartDukaan

Rev

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

Rev 16840 Rev 16842
Line 122... Line 122...
122
		//     '_serialize' => array('result')
122
		//     '_serialize' => array('result')
123
		// ));
123
		// ));
124
		// $this->render('/Elements/json');	
124
		// $this->render('/Elements/json');	
125
		$this->autoRender = false;	
125
		$this->autoRender = false;	
126
		$this->request->onlyAllow('ajax');
126
		$this->request->onlyAllow('ajax');
127
		$url = $this->apihost.'appUserBatchDateDrillDown/1/'.$date;
127
		$url = $this->apihost.'appUserBatchDateDrillDown/'.$this->Auth->User('id').'/'.$date;
128
		$getApp = $this->make_request($url,null);
128
		$getApp = $this->make_request($url,null);
129
		return json_encode($getApp);	
129
		return json_encode($getApp);	
130
	}
130
	}
131
 
-
 
132
	public function getAppByDate($date) {
-
 
133
		$this->autoRender = false;	
-
 
134
		$this->request->onlyAllow('ajax');
-
 
135
		$url = $this->apihost.'appUserBatchDateDrillDown/1/'.$date;
-
 
136
		$getApp = $this->make_request($url,null);
-
 
137
		return json_encode($getApp);
-
 
138
	}
-
 
139
}
131
}