Welcome Guest, Not a member yet? Register   Sign In
My own classes and codeigniter
#12

[eluser]TaylorOtwell[/eluser]
I usually register an autoloader for my "business model" type data structures. Normally, I don't have them inherit CI_Model. Since i have the autoloader registered, I can just new up as many as I want anytime. For my data repositories, I'll extend the CI_Model and use the regular CodeIgniter model loader, because it's usually fine to have a singleton instance of something like that.

Coming from the .NET world, this was a little bit of a hurdle for me in CI as well.


Messages In This Thread
My own classes and codeigniter - by El Forum - 11-15-2010, 04:20 PM
My own classes and codeigniter - by El Forum - 11-15-2010, 05:15 PM
My own classes and codeigniter - by El Forum - 11-16-2010, 12:57 AM
My own classes and codeigniter - by El Forum - 11-16-2010, 08:00 AM
My own classes and codeigniter - by El Forum - 11-16-2010, 10:10 AM
My own classes and codeigniter - by El Forum - 11-16-2010, 10:24 AM
My own classes and codeigniter - by El Forum - 11-16-2010, 10:29 AM
My own classes and codeigniter - by El Forum - 11-16-2010, 04:06 PM
My own classes and codeigniter - by El Forum - 11-18-2010, 07:49 AM
My own classes and codeigniter - by El Forum - 11-18-2010, 09:48 AM
My own classes and codeigniter - by El Forum - 11-18-2010, 02:31 PM
My own classes and codeigniter - by El Forum - 11-18-2010, 05:34 PM
My own classes and codeigniter - by El Forum - 11-19-2010, 03:15 AM
My own classes and codeigniter - by El Forum - 11-19-2010, 05:19 AM
My own classes and codeigniter - by El Forum - 11-19-2010, 11:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB