title: Code Igniter Passing Variable to Controller Using URL Error
body: <p>I am creatting a Code Igniter project in which I want to pass a variable through the URL like a get statement, like this: <br>
  url: /site/cake/1
  <br>
  controller function: cake($var)
  <br>
  but when the variable is left blank, I receive an error, how can I get code igniter, to ignore  this?</p>