03.
kernel.request and the RouterListener
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
2 Comments
When you go to:
/dinosaurs/22
then, according to your annotation code logic ( @Rote("/dinosaurs/{id}", name = "dinosaur_show" ),
you must get:
array(
'_controller' => 'AppBundle\Controller\DinosaurController::showAction',
'id' => '22',
'_route' => 'dinosaur_show',
)
Is it just slip of the pen?
Hi Andrew!
Ah yea, it *is* a bug with the script - you're absolutely right :). I've just fixed it - https://github.com/knpunive... - thanks for letting me know!
Cheers!
"Houston: no signs of life"
Start the conversation!