Saving sets of rules in config files - Model Function |
So hello everybody, i was wondering if you could save sets of rules in the config file, but having a custom function of a model
Kinda like combining this : https://www.codeigniter.com/userguide3/l...onfig-file PHP Code: $config = array( With this : https://www.codeigniter.com/userguide3/l...-as-a-rule PHP Code: $this->form_validation->set_rules( I tried with callback , and it worked, but i wanted to use directly the model method.(I tried adding the code but it gives me a error as users_model doesnt exist, and i added the model in the autoload) |
Welcome Guest, Not a member yet? Register Sign In |