Why the application folder is not within system folder in CI 2.0.2 ? Does that matters for the path of the programs in C |
[eluser]CodeIgniteMe[/eluser]
I notices something in your view: Code: <body> I don't think it causes the error issue, but you can first try to fix this.
[eluser]fancy_stuff[/eluser]
Thanks to point it out, but the error is still there.
[eluser]toopay[/eluser]
try naming your model as descriptive as possible, in this case is better to have a model named "Category_model" rather than MCats( follow CI General Style and Syntax for more details).
[eluser]Spelljack[/eluser]
Loader class uses ucfirst() function when calling a model/library inside Loader::model() method. So try Mcats instead. Changing your model name will be enough (Mcats). This is explained in User Guide. Check this: http://ellislab.com/codeigniter/user-gui...ml#anatomy This is also explained on PHP Style User Guide: http://ellislab.com/codeigniter/user-gui...hod_naming
[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
[eluser]InsiteFX[/eluser]
You must be a spammer because this is not a CodeIgniter Tutorial!
[eluser]Jeeva[/eluser]
Check out this link of CodeIgniter User Guide for Models.... http://ellislab.com/codeigniter/user-gui...odels.html none of the examples have their code enclosed within the php syntax, <?php ...... ?> Whereas, the examples given for Controllers has the traditional php syntax, http://ellislab.com/codeigniter/user-gui...llers.html. I'M NOT A SPAMMER.....! |
Welcome Guest, Not a member yet? Register Sign In |