You are gettting your id fro route through this line in your controller
$id = (int) $this->params()->fromRoute('id', 0);
If you want, you can also access it by the following line
$id = (int)$this->params('id');
if you echo $id
, you should get your id
value