Pass the id into your model method when you call it.
PHP Code:
// Model
public function yourMethod(int $id = 0)
{
if ($id = 0)
{
// Error
}
else
{
// Ok
}
}
// Controller call Model
$model->yourMethod($id);
or you can getVar in the mode.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )