[eluser]BrianDHall[/eluser]
In your code:
This says "this function MUST be called with a parameter, or error".
While this is logically ok, the problem is you are assuming in your function that $id was set somewhere - but it might not have been.
You can set a default value for $id, here:
Code:
function view($id = 1)
To pass a variable to the function the url should be something like website.com/person/view/1 - but if someone rips off the 1 they'll get that ugly error about $id being undefined, so you'll want to make sure its set before you refer to it.