[eluser]moonbeetle[/eluser]
I appologize in adavance if this has been asked before. I know of a post where someone partially answered my question but after searcing for nearly an hour I can't find the post again.
Is there any way to call a function from a helper without having to load the entire helper?
Suppose I have a helper called "sanitize_helper" with a bunch of format validation functions but I only need one specific function.
I once read a post about using a helper, declaring it as a class and defining all functions as public static methods. So I could do something like:
Code:
$startdate = Sanitize::checkDateFormat($this->input->post('startdate'));
But since this only works if I load the helper first with
Code:
$this->load->helper('sanitize');
I'm loading the entire helper code, right?