Extending a Helper
Permalink
I'm trying to extend the Validation/Strings helper to add a couple functions of my own, but I'm not quite sure how. I thought all I needed to do was:
But it doesn't seem to work. When I call Loader::helper('validation/strings') and then call one of my functions, it gives me an error saying the function is undefined. Anyone know the correct syntax for doing this?
<?php class SiteValidationStringsHelper extends ValidationStringsHelper { //my functions } ?>
But it doesn't seem to work. When I call Loader::helper('validation/strings') and then call one of my functions, it gives me an error saying the function is undefined. Anyone know the correct syntax for doing this?