Doc #9291 [Opn->Fbk]: error in first example.. :) :)

From: Date: Sat, 11 Nov 2006 16:40:17 +0000
Subject: Doc #9291 [Opn->Fbk]: error in first example.. :) :)
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8757@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=9291&edit=1 ID: 9291 Updated by: mj@php.net Reported By: ancro3 at gmail dot com -Status: Open +Status: Feedback Id: 9291 Type: Documentation Problem Package: Documentation PHP Version: 5.1.6 -Assigned To: +Assigned To: mj New Comment: Which page are you referring to, please? Previous Comments: ------------------------------------------------------------------------ [2006-11-09 12:54:30] ancro3 at gmail dot com Description: ------------ In basic example misses "case 'foo' and case 'bar'" The most basic implementation of the PageController pattern would look like <?php switch ($_REQUEST['action']) { 'foo': doFoo(); break; 'bar': doBar(); break; default: echo 'Hello, world!'; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=9291&edit=1

« previous php.pear.doc (#8757) next »