Welcome Guest, Not a member yet? Register   Sign In
When to Build your own Library ?
#1

[eluser]vincej[/eluser]
I'm building an order processing system - it needs to send automated emails from 5 different locations in the app. The part of me that wants to do things 'correctly' says I should be extending the email class to accept parameters from the 5 locations and to store an extended email class into a library.

I have read the user guide thoroughly on Libraries. Given I have never done this before there is a clear learning overhead. I don't really understand how best to pass parameters from multiple sources into 1 instance of 'sendmail()'

The other part of me says to heck with it. I will just place 'sendmail()' into my controllers 5 times and update the parameters in each ... easy.

What is the best practice ?? Where si the dividing line when good programmers go 'easy' or 'hard' ?

I guess if there was a great tuorial with examples that would make things easier too - as the user guide is limited.

If there are any resources I shoud look at or ideas - as ever I am Very Gratefull !












Messages In This Thread
When to Build your own Library ? - by El Forum - 02-10-2012, 01:12 PM
When to Build your own Library ? - by El Forum - 02-11-2012, 04:14 AM
When to Build your own Library ? - by El Forum - 02-11-2012, 05:04 AM
When to Build your own Library ? - by El Forum - 02-11-2012, 05:40 PM
When to Build your own Library ? - by El Forum - 02-11-2012, 06:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB