Doc #9291 [NEW]: error in first example.. :) :)
| From: | ancro3 at gmail dot com | Date: | Thu, 09 Nov 2006 17:54:30 +0000 |
| Subject: | Doc #9291 [NEW]: error in first example.. :) :) | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8748@lists.php.net to get a copy of this message | ||
From: ancro3 at gmail dot com
Operating system:
Package version:
PHP version: 5.1.6
Package: Documentation
Bug Type: Documentation Problem
Bug description: error in first example.. :) :)
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 bug report at http://pear.php.net/bugs/bug.php?id=9291&edit=1
--