Welcome Guest, Not a member yet? Register   Sign In
Templated Emails
#5

[eluser]meglio[/eluser]
Well I agree, database can be loaded in Emailx constructor then.

P.S. I do not like C++ and I use c# which does it the same way as CodeIgniter - it loads library once. But what I wanted to tell is that there is business logic - more general then small objects - and I do not like to load library in each small object which requires it. As for me it is not right. For example, what if I want to load database once in my business logic and work up all exceptions (if something goes wrong) BEFORE to do something else? In this way I know already that DB is loaded already if I'm going to create small object somewhere.

Well it seems that we are both right, but with different concept of programming big image of application Smile


Messages In This Thread
Templated Emails - by El Forum - 12-10-2008, 06:46 AM
Templated Emails - by El Forum - 12-10-2008, 07:18 AM
Templated Emails - by El Forum - 12-10-2008, 07:34 AM
Templated Emails - by El Forum - 12-10-2008, 08:27 AM
Templated Emails - by El Forum - 12-10-2008, 11:34 AM
Templated Emails - by El Forum - 10-23-2009, 01:14 AM
Templated Emails - by El Forum - 10-23-2009, 01:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB