Wrox Programmer Forums
|
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 27th, 2009, 10:40 PM
Registered User
 
Join Date: Mar 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default welcome/MOrders non-object question

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?
 
Old March 28th, 2009, 09:51 AM
Wrox Author
 
Join Date: May 2008
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts
Default that is...bizarre

I'm just staring at this and I'm not sure what the deal is. Yes, the autoload.php should automatically load the MOrders model. Can I have a bit more context?
__________________
Thomas Myer
Author, Professional CodeIgniter
http://www.tripledogs.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
reply to a question:datatype of unbound object q2q2 BOOK: Access 2003 VBA Programmer's Reference 0 November 8th, 2006 04:58 PM
File System Object question fogofogo Classic ASP Basics 1 December 8th, 2005 04:14 PM
SmartSocket question: How to send object to host magsto All Other Wrox Books 1 August 16th, 2005 02:30 PM
Connection Object question Kenny Alligood VB Databases Basics 5 July 15th, 2004 07:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.