Hi,
I encountered the same problem as in
this thread, but with MOrders instead of MProducts.
I've managed to solve the problem by adding 'MOrders' to the autoload file.
My question is more out of curiosity. The code in the book gives:
Code:
function ajax_cart() {
$this->load->model('MOrders,'',TRUE);
return $this->MOrders->updateCartAjax...
Shouldn't the first line in this function take care of loading the model? Why doesn't this work and 'MOrders' needs to be added to autoload.php instead?