bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.61k forks source link

getValidationRules not working if we use validationRules as string #5967

Closed jahmedk closed 4 years ago

jahmedk commented 4 years ago

Hi, there is a problem i faced in model getValidationRules not working if we use validationRules as string in model.

image

i think it should update as you'd in validate method $rules is updating in validate method if it's assign as string in model

ytetsuro commented 4 years ago

This is the repository for CodeIgniter3. In CodeIgniter3, the getValidationRules method does not exist. Could it be that CodeIgniter4?

https://github.com/codeigniter4/CodeIgniter4

narfbg commented 4 years ago

Indeed, this is a CI4 issue.