![]() |
Codeigniter 4 ErrorException Undefined variable: table - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Codeigniter 4 ErrorException Undefined variable: table (/showthread.php?tid=77169) |
Codeigniter 4 ErrorException Undefined variable: table - Dr3am3rz - 07-28-2020 I am facing this issue of Undefined variable as shown in the image attached which I am not sure what is wrong. ![]() My code as follows: Controller Code: public function game_reg() Views Code: <select id="myDropdown"> If I remove away the is_unique function, everything works perfectly fine but when I include the is_unique, I get the error. Hope someone can help me out of this. Thanks in advance guys! RE: Codeigniter 4 ErrorException Undefined variable: table - jreklund - 08-01-2020 Your $data array dosen't contain anything named "table". $data['table'] = []; |