title: CakePHP - Fix malformed URL parameters
body: <p>When i'm editing an register of my database the url is <code>/edit/168</code> (for example). But if i change this url to <code>/edit/168'</code> or <code>/edit/168=</code> give me an error of database.</p>
  
  <p>How can i validate the id before searching in the database?</p>
  
  <p>thank you :)</p>