I am new to CI coming from a .Net background.
I have been following the tutorial and all was going well until I got to the end of the news tutorial section.
I am getting the following error when I try and visit my index.php/news page:
A PHP Error was encountered
Message: Undefined property: News::$news_model
Line Number: 13
I have checked my code line by line and can’t see any differences between the tutorial and my versions.
I have set up logging in MySQL and I can see that CI is hitting the DB and registering the following entry in to the logs:
Init DB root
Query SET NAMES utf8
I have also checked to see if all my cases are correct, which they seem to be.
I have now been trying to fix this error for 8 hours and I’m out of ideas.
Any help would be greatly received!
FYI (if it helps diagnose the issue), I am running a Mac on Mountain Lion 10.8.3 with the latest CI, MySQL and PHP installations.
Thanks in advance,