Welcome Guest, Not a member yet? Register   Sign In
Cannot load Model on live server
#1

[eluser]Richard Testani[/eluser]
I've been developing a CI site locally on my Mac and all is well, but when I went to test it out on a live server, I get an error.
Code:
Unable to locate the model you have specified: orders

here is the code:
Code:
class Index extends Controller {
    
    protected    $mode    =    'test';
    
    public function __construct() {
        parent::Controller();
    }
    
    public function index() {
        $this->load->database();
        $this->load->library('session');
        
        //load models
        $this->load->model('orders');
        $this->load->model('products');
        
        //load libraries
        $data['products']    =    $this->products->getAllProducts('id');
        
        if($mode = 'test') {
            $data['paypal_email']    =    "[email protected]";
            $data['paypal_host']    =    "https://www.sandbox.paypal.com/";
        } else {
            $data['paypal_email']    =    "[email protected]";
            $data['paypal_host']    =    "https://www.paypal.com/";
        }
        if(isset($_REQUEST['tx'])) {
            $this->postProcess();
        }
        
        $this->load->view('index', $data);
    }
...

This is only the first pat of the class

The model is certainly there, and simply names Orders.php. Even when I capitalize 'Orders', no match.
When I comment it out, the next model trying to load fails too.

Any ideas?
Thanks
Rich


Messages In This Thread
Cannot load Model on live server - by El Forum - 08-04-2009, 10:15 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 10:22 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 10:24 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 10:36 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 10:39 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 10:52 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 11:41 AM
Cannot load Model on live server - by El Forum - 08-04-2009, 12:48 PM
Cannot load Model on live server - by El Forum - 08-04-2009, 01:04 PM
Cannot load Model on live server - by El Forum - 08-04-2009, 07:29 PM
Cannot load Model on live server - by El Forum - 08-05-2009, 12:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB