Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function delete($id= null) {
- if ($this->request->is('get')) {
- throw new MethodNotAllowedException();
- }
- if ($this->Employee->delete($id)) {
- $this->Session->setFlash('The Employee with id: ' . $id . ' has been deleted.');
- $this->redirect(array('action' => 'index'));
- }
- }
- and for view
- public function view($id = null) {
- $this->Employee->id = $id;
- $this->set('view', $this->Employee->read());
- }
- I assume I have to make a ctp for view?
Advertisement
Add Comment
Please, Sign In to add comment