Welcome Guest, Not a member yet? Register   Sign In
HMVC Form Validation Callbacks
#1

[eluser]CoffeeBeanDesign[/eluser]
Hello all,

I'm using wiredesignz's wonderful HMVC Library. I can't seem to get Form Validation callbacks to work. I notice in Form_validation.php :

Code:
// Call the function that corresponds to the rule
if ($callback === TRUE)
{
if ( ! method_exists($this->CI, $rule))
{        
continue;                                    
}

If I put the function in My_Form_validation it works fine... Might it be that HMCV changes the scope of '$this' and therefore it can't find my callback function?? Is there something different I should do to use custom callbacks with HMVC??

Your assistance will be greatly appreciated.
#2

[eluser]wiredesignz[/eluser]
This question is answered in the wiki article thread. http:///forums/viewreply/578755/
#3

[eluser]CoffeeBeanDesign[/eluser]
Amazing, so quick!! Thank you so much.

I did search the forum for the answer but couldn't find it. I'll try to look more carefully next time.

All the best.




Theme © iAndrew 2016 - Forum software by © MyBB