Error:Call to undefined method - 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: Error:Call to undefined method (/showthread.php?tid=25700) |
Error:Call to undefined method - El Forum - 12-21-2009 [eluser]ChristopherDosin[/eluser] hey guys, i`m new at php and codeigniter. i`ve a question. i get this error message. Code: Fatal error: Call to undefined method CI_Loader::libary() in D:\xampp\htdocs\chris\application\controllers\login.php on line 36 line 36 in my php file: Code: function create_member() in my autoload.php i`ve loaded the form_validation libary Code: $autoload['libraries'] = array('database', 'session', 'form_validation'); so whats the error because i`ve loaded the form_validation libary or? Error:Call to undefined method - El Forum - 12-21-2009 [eluser]ChristopherDosin[/eluser] my fault. library not libary Error:Call to undefined method - El Forum - 12-21-2009 [eluser]BrianDHall[/eluser] Don't you hate those one-letter errors? LOL One other thing though, don't double-load, it only causes big problems that are hard to find. If something is autoloaded, don't use $this->load on it again. Pick one or the other for any given library. So if you autoload form_validation, remove that line from the create_member function. It might not cause an error now, but it can be a real pain with some libraries. Error:Call to undefined method - El Forum - 12-21-2009 [eluser]ChristopherDosin[/eluser] yes this one letter errors sucks okay thanks i`ll remove it from the audoload.php Error:Call to undefined method - El Forum - 12-22-2009 [eluser]saidai jagan[/eluser] [quote author="BrianDHall" date="1261444330"] One other thing though, don't double-load, it only causes big problems that are hard to find. If something is autoloaded, don't use $this->load on it again. So if you autoload form_validation, remove that line from the create_member function. It might not cause an error now, but it can be a real pain with some libraries.[/quote] Thanks, BrianDHall Some times i suppose to do it :red: |