Tuesday, 15 June 2010

php - Slim Routing - Routes ignored -



php - Slim Routing - Routes ignored -

i've problem how model routes recognized correctly. i've next routes:

$app->get('/courses/:id', function ($id) utilize ($app) { $app->render(200, array("id parameter")); }); $app->get('/courses/attendees', function () utilize ($app) { $app->render(200, array("attendee parameter")); }); $app->get('/courses/search', function () utilize ($app) { $app->render(200, array("search parameter")); });

if phone call uri localhost/courses/12 i'll expected result "id parameter" if phone call uri localhost/courses/search or localhost/courses/attendees still same result.

seems i'm missing here...

php routing slim

No comments:

Post a Comment