helper - advice needed |
[eluser]LuckyFella73[/eluser]
Hi codeigniters, I want to set up a helper that will encode email addresses in ascii. Where would be the best place to implement it? Would you extend the text- or email helper or would you just set up a new helper?
[eluser]johnwbaxter[/eluser]
Entirely up to you to be honest, helpers are such small things that the overhead is minimal to say the least. If it was me, i would make my own helper. But if you think it relates to another helper that you're using / loading anyway then you may as well extend that helper.
[eluser]LuckyFella73[/eluser]
I'll set it up as new helper then because I can't find a place in the existing helpers which makes me think that it should be placed there. Thanks for your comment!
[eluser]LuckyFella73[/eluser]
I just finished my helper and an other question popped up ... How has the comment block to look like to be correct? Do I just paste this: Code: /** CodeIgniter and then something like that: Code: /** Seems to be a stupid question but I'm not familiar with this kind of stuff ..
[eluser]LuckyFella73[/eluser]
In case someone else needs this .. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Welcome Guest, Not a member yet? Register Sign In |