[eluser]Jeeva[/eluser]
Hi,
I encountered the same error. After a long research , I found the silly mistake of mine,
Did you enclose the code of your model php file inside <?php ... ?> ?
I hope not... This fixes the issue. It's not only our mistake. Even the codeIgniter tutorial misguided us...
Hope this helps....
Thanks,
Jeeva