Undefined method that's actually defined. - 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: Undefined method that's actually defined. (/showthread.php?tid=30024) |
Undefined method that's actually defined. - El Forum - 04-29-2010 [eluser]behdesign[/eluser] Here's the model I'm calling, that I autoload when CI starts: Code: <? When I call it from the controller, I get the error: Code: Call to undefined method Proctor::get_verification_methods() Can anyone tell me why this would be? Undefined method that's actually defined. - El Forum - 04-29-2010 [eluser]bhogg[/eluser] Looks like the brackets are in the wrong place... you're ending the Proctor class before declaring the function. Undefined method that's actually defined. - El Forum - 04-29-2010 [eluser]Ivan A. Zenteno[/eluser] You are closing the model before the method of the controller Check like this: Code: <? Undefined method that's actually defined. - El Forum - 04-29-2010 [eluser]behdesign[/eluser] Lord, I hate closures. Thank you all. |