//logout
public function logout() {
$this->redirect($this->Auth->logout());
}
//redirect
public function webdelete($id = null) {
$this->Project->id = $id;
if ($this->Project->delete($id)) {
$this->Session->setFlash(__(‘Project deleted’));
$this->redirect(array('controller' => 'projects', 'action' => 'viewprojectweb'));
}
}