Loading Model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Loading Model (/showthread.php?tid=57029) |
Loading Model - El Forum - 02-08-2013 [eluser]Unknown[/eluser] I got a view and I'm trying to retrieve some data from a model, executing the following lines: Quote:$this->load->model('clientes_model'); But I'm getting the follow message. Quote:A PHP Error was encountered If I load another model, works fine: Quote:$this->load->model('pedidos_model'); Actually this is the only model that is loaded normally, any other I try, I get the message. Here's my model (example): Quote:class Clientes_model extends CI_Model{ Quote:class Pedidos_model extends CI_Model{ Somebody can help me with this? Both models are declared exactly alike. Loading Model - El Forum - 02-08-2013 [eluser]Aken[/eluser] You don't want to load and retrieve data from your models in your view. That's what your controller is for. |