Subversion-Projekte lars-tiefland.cakephp

Revision

Revision 11 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 11 Revision 14
Zeile 42... Zeile 42...
42
                    $this->Session->setFlash( 'Your post has been saved.' );
42
                    $this->Session->setFlash( 'Your post has been saved.' );
43
                    $this->redirect( array('action' => 'index') );
43
                    $this->redirect( array('action' => 'index') );
44
                }
44
                }
45
            }
45
            }
46
        }
46
        }
-
 
47
        function delete( $id )
-
 
48
        {
-
 
49
            $this->Post->del( $id );
-
 
50
            $this->Session->setFlash( 'The post with id: ' . $id .
-
 
51
                ' has been deleted.' );
-
 
52
            $this->redirect( array('action' => 'index') );
-
 
53
        }
47
    }
54
    }
Zeile 48... Zeile 55...
48
 
55
 
49
?>
56
?>