How to display a specific data type correctly

Suppose I have objects of type “MyDateType”
I display them as a list, and when displaying each item in the list, I use the link <a href = “detailMyDataType?id=111”>
And for the “detailMyDataType” page I associate a template in which I process $ _GET[‘id’]

But how to do it CORRECTLY?