Welcome Guest, Not a member yet? Register   Sign In
Form Validation > Extend CI Base
#3

[eluser]stevezissou[/eluser]
Just glanced at your code, but it seems as if you are calling the wrong parent constructor. If you are trying to extend the class 'CI_Form_validation' it would be...

Code:
class MO_Form_validation extends CI_Form_validation {

  function MO_Form_validation( $rules = array() ) {

    parent::CI_Form_validation( $rules );

  }

}


Messages In This Thread
Form Validation > Extend CI Base - by El Forum - 06-25-2009, 06:22 AM
Form Validation > Extend CI Base - by El Forum - 06-25-2009, 08:00 AM
Form Validation > Extend CI Base - by El Forum - 06-25-2009, 08:38 AM
Form Validation > Extend CI Base - by El Forum - 06-25-2009, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB