Index: /doc/branches/1.1/tutorial/my-first-project.txt =================================================================== --- /doc/branches/1.1/tutorial/my-first-project.txt (revision 8669) +++ /doc/branches/1.1/tutorial/my-first-project.txt (revision 8927) @@ -470,5 +470,13 @@ public function handleErrorUpdate() { - $this->forward('comment', 'create'); + // forward it to edit if the id exists + if (!$this->getRequestParameter('id')) + { + $this->forward('comment', 'create'); + } + else + { + $this->forward('comment', 'edit'); + } } Index: /doc/branches/1.0/tutorial/my-first-project.txt =================================================================== --- /doc/branches/1.0/tutorial/my-first-project.txt (revision 8669) +++ /doc/branches/1.0/tutorial/my-first-project.txt (revision 8927) @@ -405,5 +405,13 @@ public function handleErrorUpdate() { - $this->forward('comment', 'create'); + // forward it to edit if the id exists + if (!$this->getRequestParameter('id')) + { + $this->forward('comment', 'create'); + } + else + { + $this->forward('comment', 'edit'); + } }