yet more form validation 1.7 |
[eluser]soupdragon[/eluser]
I am trying to update to 1.7........but having difficulties controller Code: class Seller extends Controller { somehow my validation rules are not being called, i had this working with the old ci form validation and i am sure this is a stupid error but i have tried a lot without sucess, so please help :-) Edit by Michael Wales: Wrapped in code tags
[eluser]Matthieu Fauveau[/eluser]
You need to load your form validation config file... it's in the doc. Code: $this->form_validation->set_rules($this->config->item('Seller/seller_reg')); Regards.
[eluser]soupdragon[/eluser]
nope thats not it ! make no difference and anyway thats not true....according to the documentation When a rule group is named identically to a controller class/function it will be used automatically when the run() function is invoked from that class/function.
[eluser]soupdragon[/eluser]
nope - changed Seller to seller in both controller, and for_validation makes no difference
[eluser]soupdragon[/eluser]
....looks round in panic....what do you mean ? :-)
[eluser]xwero[/eluser]
do you use site.com/sellers/seller_reg or site.com/sellers/registration (or a variation) to get to your method.
[eluser]pistolPete[/eluser]
http://ellislab.com/codeigniter/user-gui...uting.html
[eluser]soupdragon[/eluser]
oh that routing ...to the controller (is it not?) i use sellers/seller_reg EDIT ... i assume then that from the lack of immediate answers that basically what i have done is correct, just there is an error or bug somewhere? |
Welcome Guest, Not a member yet? Register Sign In |