Crazy with callbacks |
I'm going crazy,
I think I did everything correctly, because I took the code of another example of my project and everything works properly them. Controller: PHP Code: public function title_check_exist($title) { Model: PHP Code: public function title_check($title) { When I insert a title or a link already exists in the database, it is not calculated but also created the page. All other rules instead are read properly and when something deliberately wrong in the callback is signaled. What is the error that I can not find? Thanks for your continued support that you give me. EDIT: I can try edit this part PHP Code: if ($query->num_rows() > 0){ with this code: PHP Code: if ($title = 'title of page'){ and the result it is the same. |
Messages In This Thread |
Crazy with callbacks - by StratoKyke - 06-10-2015, 05:37 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 05:59 AM
RE: Crazy with callbacks - by CroNiX - 06-10-2015, 06:34 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 06:37 AM
RE: Crazy with callbacks - by CroNiX - 06-10-2015, 06:41 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 06:45 AM
RE: Crazy with callbacks - by CroNiX - 06-10-2015, 06:49 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 06:52 AM
RE: Crazy with callbacks - by CroNiX - 06-10-2015, 07:01 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 07:07 AM
RE: Crazy with callbacks - by CroNiX - 06-10-2015, 07:12 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 07:23 AM
RE: Crazy with callbacks - by CroNiX - 06-10-2015, 07:38 AM
RE: Crazy with callbacks - by StratoKyke - 06-10-2015, 08:38 AM
RE: Crazy with callbacks - by Blair2004 - 06-10-2015, 11:38 AM
|