Welcome Guest, Not a member yet? Register   Sign In
Helper or Library?
#1

[eluser]James Burton[/eluser]
Hi all,

I'm starting to get the hang of using CodeIgniter.
But here's the deal.

Several parts of my website will need to send email, using the email helper, but instead of typing out all the settings each time I want to create a function that I can pass the simple details (to, subject, message) to.

Should this be done using a custom helper or library? Or does it really matter?

I've tried creating a helper but I get the following error..
Using $this when not in object context

If someone could lay out the best practice of going about this it'd be a great help. Smile

Thanks in advance!


Messages In This Thread
Helper or Library? - by El Forum - 07-15-2009, 11:13 AM
Helper or Library? - by El Forum - 07-15-2009, 12:12 PM
Helper or Library? - by El Forum - 07-15-2009, 04:36 PM
Helper or Library? - by El Forum - 07-15-2009, 04:40 PM
Helper or Library? - by El Forum - 07-15-2009, 04:51 PM
Helper or Library? - by El Forum - 07-15-2009, 04:55 PM
Helper or Library? - by El Forum - 07-15-2009, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB