Welcome Guest, Not a member yet? Register   Sign In
using $this->load->model on Modular Extensions fails
#6

[eluser]wiredesignz[/eluser]
ME checks for both lowercase filenames (customer_model.php) and capitalised filenames (Customer_model.php) in modules_find() method.

However you must use lowercase object names when loading and accessing them.
Code:
$this->load->model('customer_model');

$this->customer_model->get();

// or you can use an alias as per the user guide.


Messages In This Thread
using $this->load->model on Modular Extensions fails - by El Forum - 08-14-2008, 01:00 AM
using $this->load->model on Modular Extensions fails - by El Forum - 08-14-2008, 02:07 AM
using $this->load->model on Modular Extensions fails - by El Forum - 08-14-2008, 02:19 AM
using $this->load->model on Modular Extensions fails - by El Forum - 08-14-2008, 03:19 AM
using $this->load->model on Modular Extensions fails - by El Forum - 08-14-2008, 03:26 AM
using $this->load->model on Modular Extensions fails - by El Forum - 08-14-2008, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB