callback_ won't work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: callback_ won't work (/showthread.php?tid=29641) |
callback_ won't work - El Forum - 04-16-2010 [eluser]babazumbula[/eluser] Hello there, I'm doing simple checking if username already exists in database. To achieve this in model function I've got Code: function existing_user(){ Code: function create_member(){ But every time I try to create account with existing username in database I don't get an error.Every time the duplicate username is inserted into database. I tried even to simplify the model function like Code: function existing_user(){ Where I went wrong? Thnx in advance! callback_ won't work - El Forum - 04-16-2010 [eluser]davidbehler[/eluser] The form validation looks for the callback method in your controller. So in your case you would have to do sth like this: Model Code: function existing_user(){ Controller Code: function existing_user(){ callback_ won't work - El Forum - 04-16-2010 [eluser]babazumbula[/eluser] Yeah,Now it works perfectly! Thnx! |