Subversion Repositories SmartDukaan

Rev

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

Rev 14786 Rev 15410
Line 35... Line 35...
35
 * @throws NotFoundException
35
 * @throws NotFoundException
36
 * @param string $id
36
 * @param string $id
37
 * @return void
37
 * @return void
38
 */
38
 */
39
	public function view($id = null) {
39
	public function view($id = null) {
-
 
40
		
40
		if (!$this->Pushnotification->exists($id)) {
41
		if (!$this->Pushnotification->exists($id)) {
41
			throw new NotFoundException(__('Invalid pushnotification'));
42
			throw new NotFoundException(__('Invalid pushnotification'));
42
		}
43
		}
-
 
44
		$total = $this->Article->find('count');
43
		$options = array('conditions' => array('Pushnotification.' . $this->Pushnotification->primaryKey => $id));
45
		/*$options = array('conditions' => array('Pushnotification.' . $this->Pushnotification->primaryKey => $id));
44
		$this->set('pushnotification', $this->Pushnotification->find('first', $options));
46
		$this->set('pushnotification', $this->Pushnotification->find('first', $options));*/
45
	}
47
	}
46
 
48
 
47
/**
49
/**
48
 * add method
50
 * add method
49
 *
51
 *
Line 147... Line 149...
147
 */
149
 */
148
	public function admin_view($id = null) {
150
	public function admin_view($id = null) {
149
		if (!$this->Pushnotification->exists($id)) {
151
		if (!$this->Pushnotification->exists($id)) {
150
			throw new NotFoundException(__('Invalid pushnotification'));
152
			throw new NotFoundException(__('Invalid pushnotification'));
151
		}
153
		}
-
 
154
		$total = $this->Article->find('count');
152
		$options = array('conditions' => array('Pushnotification.' . $this->Pushnotification->primaryKey => $id));
155
/*		$options = array('conditions' => array('Pushnotification.' . $this->Pushnotification->primaryKey => $id));
153
		$this->set('pushnotification', $this->Pushnotification->find('first', $options));
156
		$this->set('pushnotification', $this->Pushnotification->find('first', $options));*/
154
	}
157
	}
155
 
158
 
156
/**
159
/**
157
 * admin_add method
160
 * admin_add method
158
 *
161
 *