Welcome Guest, Not a member yet? Register   Sign In
Form validation callback in HMVC
#4

[eluser]Aken[/eluser]
I haven't worked enough with HMVC to say for sure, but...

1) You don't need to define $CI / use get_instance() again when extending the Form Validation library - it's already there in the base class.

2) Ideally, if you're going to extend the library anyway, just turn your callbacks into additional rules in the library. Then you don't need to worry about the controller scope or reassigning the CI object.


Messages In This Thread
Form validation callback in HMVC - by El Forum - 07-19-2012, 05:23 AM
Form validation callback in HMVC - by El Forum - 07-19-2012, 05:46 AM
Form validation callback in HMVC - by El Forum - 07-19-2012, 06:02 AM
Form validation callback in HMVC - by El Forum - 07-19-2012, 02:26 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 02:40 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 02:56 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 03:19 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 03:37 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 03:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB