Welcome Guest, Not a member yet? Register   Sign In
Problems with extending CI_Form_validation
#6

(This post was last modified: 07-30-2017, 02:52 AM by Martin7483.)

That I didn't spot this from the start :S

It's your class name AdvancedValidation. This is not autoloaded, so your rule is not available. That is why it is returning FALSE.
When not available, you won't get a PHP error or warning for a non existing method as the validation class uses a method_exists check on called rules.

Also this is not how the Loader class works when loading extended classes.
Look at the Loader class for more details.

If you don't want to use a Class prefix then the class name should be Form_Validation

So rename the class (I would do this),
or manually load the extended class (which is going to cause more problems than solve them)
Reply


Messages In This Thread
RE: Problems with extending CI_Form_validation - by Martin7483 - 07-30-2017, 02:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB