• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another Error in shopping cart

#4
[eluser]leozzz[/eluser]
[quote author="puppycrack" date="1231744783"]I believe it means that $this->MOrders is null, hence you are trying to call a function on a non-object. It's probably not loading correctly. Can you list two things?

1) The line that loads the model in the controller
2) The name of the file that contains the model

I have run into this before when the filename containing the model started with an upper case character.

-pc[/quote]


I found the error, you have to add the new model to autoload.php
where the book forgot to mention this point.


Messages In This Thread
Another Error in shopping cart - by El Forum - 01-04-2009, 03:02 PM
Another Error in shopping cart - by El Forum - 01-11-2009, 07:09 PM
Another Error in shopping cart - by El Forum - 01-11-2009, 07:19 PM
Another Error in shopping cart - by El Forum - 03-20-2011, 10:36 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.