Changeset 8927
- Timestamp:
- 05/13/08 13:31:51 (5 months ago)
- Files:
-
- doc/branches/1.0/tutorial/my-first-project.txt (modified) (1 diff)
- doc/branches/1.1/tutorial/my-first-project.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.0/tutorial/my-first-project.txt
r8669 r8927 405 405 public function handleErrorUpdate() 406 406 { 407 $this->forward('comment', 'create'); 407 // forward it to edit if the id exists 408 if (!$this->getRequestParameter('id')) 409 { 410 $this->forward('comment', 'create'); 411 } 412 else 413 { 414 $this->forward('comment', 'edit'); 415 } 408 416 } 409 417 doc/branches/1.1/tutorial/my-first-project.txt
r8669 r8927 470 470 public function handleErrorUpdate() 471 471 { 472 $this->forward('comment', 'create'); 472 // forward it to edit if the id exists 473 if (!$this->getRequestParameter('id')) 474 { 475 $this->forward('comment', 'create'); 476 } 477 else 478 { 479 $this->forward('comment', 'edit'); 480 } 473 481 } 474 482