Cannot use db access after another access in a separate library - 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: Cannot use db access after another access in a separate library (/showthread.php?tid=48130) |
Cannot use db access after another access in a separate library - El Forum - 01-05-2012 [eluser]WebMada[/eluser] Hello! I've coded a library as my authentification library Code: public function Login($argLogin, $argPassword) { Quote:Severity: WarningAccording to me, the error is a conflict between $this->CI =& get_instance() launched in Login() and the instance in the controller using it. Another fact is this problem is just on my hoster but it works correctly locally with Xamp, Wampserver, etc. Code: $GLOBALS["gUser"]->Login($this->input->post("txtLogin"), $this->input->post("txtMotDePasse")); Regards, webmada |