Subversion Repositories SmartDukaan

Rev

Rev 17471 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17471 Rev 17535
Line 144... Line 144...
144
 */
144
 */
145
 
145
 
146
	public function admin_delete($id = null) {		
146
	public function admin_delete($id = null) {		
147
		// $this->request->onlyAllow('post', 'delete');
147
		// $this->request->onlyAllow('post', 'delete');
148
		if ($this->remove($id,'FeaturedDeals')) {
148
		if ($this->remove($id,'FeaturedDeals')) {
149
			$this->Session->setFlash(__('The negative deal has been deleted.'));
149
			$this->Session->setFlash(__('The feature deal has been deleted.'));
150
		} else {
150
		} else {
151
			$this->Session->setFlash(__('The negative could not be deleted. Please, try again.'));
151
			$this->Session->setFlash(__('The feature deal could not be deleted. Please, try again.'));
152
		}
152
		}
153
		return $this->redirect(array('action' => 'index'));
153
		return $this->redirect(array('action' => 'index'));
154
	}	
154
	}	
155
}
155
}