undefined variable - 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 variable (/showthread.php?tid=59217) |
undefined variable - El Forum - 09-05-2013 [eluser]datactrl[/eluser] I defined an array, $ar, in index.php and have some values in it. Then I used it in conf.php. On CI version 1.7, it works. On CI version 2.1.4. it reports undefined variable $ar. Please advise, Thank you very much! undefined variable - El Forum - 09-08-2013 [eluser]datactrl[/eluser] By adding 'global $ar;' at beginning of config.php, it solved undefined variable problem. |