Skip to content

Commit ab10529

Browse files
sdknjg8zxqweaverryan
authored andcommitted
fix elseif statement
1 parent 3969fd6 commit ab10529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ on the requested URI:
367367
require_once 'controllers.php';
368368

369369
// route the request internally
370-
$uri = $_SERVER['REQUEST_URI'];
370+
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
371371
if ('/index.php' == $uri) {
372372
list_action();
373373
} elseif ('/index.php/show' == $uri && isset($_GET['id'])) {

0 commit comments

Comments
 (0)