Welcome Guest, Not a member yet? Register   Sign In
My Class Libraries Living Between Methods Calls in Controller
#11

[eluser]CodeIgniterNewbie[/eluser]
Speed? Well, instead of having objects, why not just throw everything in session? If I need any methods, I can just put them in the controller. Sure, the controller may have a bunch of unrelated methods, but it'll still work. How is the object approach better than this?

(BTW, I did a quick test on serialize and unserialze. They work as advertised. So, if I need to persist the object, I just serialize it, save it to session (?), then unserialize it after the next page load?)


Messages In This Thread
My Class Libraries Living Between Methods Calls in Controller - by El Forum - 04-22-2008, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB