Extending form validation in Codeigniter

后端 未结 3 1001
故里飘歌
故里飘歌 2020-12-10 16:01

I have placed this class file called \'My_Form_validation.php\' into \'application/core\' and I have also tried placing it in \'application/libraries\'.

In my contro

3条回答
  •  不知归路
    2020-12-10 16:47

    You have to add $rules on your __construct method and also pass this to parent constructor

    eg:

    function __construct($rules = array())
    {
        parent::__construct($rules);
    }
    

    Look at Form_validation and provide same variables.

提交回复
热议问题