![]() |
Upgrade to 2.0.2 from 1.7.2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Upgrade to 2.0.2 from 1.7.2 (/showthread.php?tid=40528) Pages:
1
2
|
Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-15-2011 [eluser]InsiteFX[/eluser] Well they you have something else wrong! It would help if you posted your code. InsiteFX Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-15-2011 [eluser]wbremen[/eluser] i just posted every line. its only 4 lines of code and the rest is a clean freshly downloaded CI Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-15-2011 [eluser]Pascal Kriete[/eluser] It's the get_instance() call in your MY_Lang constructor. The language library is instantiated before the super object is available, so you can't call get_instance at that point =) . Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-16-2011 [eluser]wbremen[/eluser] well, in 1.7.x it did work, why did they have to change it and what is the solution? Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-17-2011 [eluser]Pascal Kriete[/eluser] Quote:well, in 1.7.x it did work, why did they have to change it and what is the solution? There was no change, the language library has always been instantiated before the controller. The solution is to call get_instance() when you need it in one of your methods instead of calling it in the constructor. |