Associating a Controller Function with a Rule Group - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Associating a Controller Function with a Rule Group (/showthread.php?tid=24305) |
Associating a Controller Function with a Rule Group - El Forum - 11-05-2009 [eluser]Unknown[/eluser] Hello Let me begin by saying that I've just started using CodeIgniter and I think it's great. I really enjoy using the form_validation class and I think that the ability to associate a controller function with a validation rule group is awesome. I've used this feature and everything worked out great until I've tried to associate a controller function that takes paramenters with a rule group. For example: Code: class Test extends Controller{ But Code: class Test extends Controller{ I am aware that I can simply name the validation group and just call $this->form_validation->run('groupName'), and that's actually what I've ended up doing, but I'm just wondering if there is a proper way to associate a controller function that takes parameters with a rule group. Thank you. |