Welcome Guest, Not a member yet? Register   Sign In
Emailer class
#9

[eluser]uptime[/eluser]
[quote author="panos konstantinides" date="1259277995"]
We don't really think we will be migrating any time soon, but this code we write now will probably be used for other projects, which are also based on CI as well.
[/quote]

I'd probably never migrate away from CI but some old projects do not use it (though, I've slowly migrated nearly all of them).


[quote author="panos konstantinides" date="1259277995"]
I guess you mean to use the parser class to parse the text and populate it with data. Is it better than str_replace (basically I am concerned if it's faster).
[/quote]

Yeah, the built-in (CI) template parser library.

I care a lot about performance but I'm pretty sure what's going to slow it down is the mail, not the str_replace vs. parser class.

[edit]
By the way, nothing against str_replace()... just like to use production code than something that was just made.

If you're gonna use str_replace(), you should know that you could pass an array for the first two parameters, it may save you some time (just wasn't sure if you knew it or not).


Messages In This Thread
Emailer class - by El Forum - 11-26-2009, 09:24 AM
Emailer class - by El Forum - 11-26-2009, 10:20 AM
Emailer class - by El Forum - 11-26-2009, 10:27 AM
Emailer class - by El Forum - 11-26-2009, 10:49 AM
Emailer class - by El Forum - 11-26-2009, 11:05 AM
Emailer class - by El Forum - 11-26-2009, 11:18 AM
Emailer class - by El Forum - 11-26-2009, 11:26 AM
Emailer class - by El Forum - 11-26-2009, 11:31 AM
Emailer class - by El Forum - 11-26-2009, 01:07 PM
Emailer class - by El Forum - 11-26-2009, 01:16 PM
Emailer class - by El Forum - 11-26-2009, 01:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB