Welcome Guest, Not a member yet? Register   Sign In
how to pass argument to model constructor while loading a model
#3

[eluser]TheFuzzy0ne[/eluser]
I second that. It's always a good idea to have an initialisation method which you can call from the constructor if need be, although in your case, it's pretty pointless if you're loading the model via CodeIgniter's loader.

I'd like to point out, however, that it's probably wiser to stick to the US spelling, so your method should be called initialize().


Messages In This Thread
how to pass argument to model constructor while loading a model - by El Forum - 05-27-2009, 05:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB