Subversion Repositories SmartDukaan

Rev

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

Rev 16583 Rev 16704
Line 168... Line 168...
168
			$sharable = 0;
168
			$sharable = 0;
169
			if(isset($_COOKIE['shareApps']) && !empty($_COOKIE['shareApps'])) {
169
			if(isset($_COOKIE['shareApps']) && !empty($_COOKIE['shareApps'])) {
170
				$sharable = 1;
170
				$sharable = 1;
171
			}
171
			}
172
			//Fetch app offers
172
			//Fetch app offers
173
			$this->loadModel('AppOffer');
173
			// $this->loadModel('AppOffer');
174
			$this->AppOffer->recursive = -1;
174
			// $this->AppOffer->recursive = -1;
175
			$options = array('conditions'=>array('offer_active'=>1,'show'=>1),'limit' => Configure::read('searchresultsperpage'),'page'=>$page);
175
			// $options = array('conditions'=>array('offer_active'=>1,'show'=>1),'limit' => Configure::read('searchresultsperpage'),'page'=>$page);
176
			$this->Paginator->settings = $options;
176
			// $this->Paginator->settings = $options;
177
			$this->set('appOffers', $this->Paginator->paginate('AppOffer'));
177
			// $this->set('appOffers', $this->Paginator->paginate('AppOffer'));
-
 
178
			$url = $this->apihost."appOffers/1";
-
 
179
			$appOffers = $this->make_request($url,null);
178
			$this->set(compact('page','id','sharable'));
180
			$this->set(compact('page','id','sharable','appOffers'));
179
			$this->render('viewapps');
181
			$this->render('viewapps');
180
		}
182
		}
181
	}
183
	}
182
 
184
 
183
	public function getapps($id=null){
185
	public function getapps($id=null){