Welcome Guest, Not a member yet? Register   Sign In
Where to put plain object classes?
#44

(This post was last modified: 01-06-2015, 05:35 AM by Jamie.)

(01-05-2015, 10:18 PM)sneakyimp Wrote: OK I'll admit that I can see from the documentation here:
http://www.codeigniter.com/userguide3/ge...odels.html
that you can certainly load a model without an include or require statements. However, this results in CI trying to instantiate the model. Unless I'm missing something, the documentation doesn't describe any way that I might supply any parameters to the constructor of the Model class. If this is possible, it would be helpful information. If it is not possible, that would also be helpful information.

I may have misunderstood your question here - apologies if this is the case, but take a look at Loader Class Documentation about passing parameters to models.

Edit: Just noticed that this had already been suggested by includebeer here.
Jamie Bond
Full time International Development undergraduate.
Part time website developer.
Reply


Messages In This Thread
Where to put plain object classes? - by geekita - 12-02-2014, 05:51 AM
RE: Where to put plain object classes? - by Jamie - 01-06-2015, 05:18 AM
RE: Where to put plain object classes? - by Jamie - 01-06-2015, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB