Function: _error_handler - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Function: _error_handler (/showthread.php?tid=68238) |
Function: _error_handler - andreclino - 06-14-2017 Hello i create a construct to make a menu like: PHP Code: public function __contruct() { Code: A PHP Error was encountered PHP Code: public function index() { And works...It looks like it's not sending the construct to the index. RE: Function: _error_handler - ciadmin - 06-14-2017 The constructor is named "__construct" ... note the "s". If you wish to set an instance variable inside it, use "$this->query", not "$query" RE: Function: _error_handler - andreclino - 06-14-2017 I'm an dump writing wrong, sorry. |