![]() |
Is there a way to redefine a constant in codeigniter? - 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: Is there a way to redefine a constant in codeigniter? (/showthread.php?tid=35669) |
Is there a way to redefine a constant in codeigniter? - El Forum - 11-07-2010 [eluser]knucklehead[/eluser] Maybe a dumb question ![]() Anyway, what I want to do is to retain some variable in my app (var is actually my app version number) and after user submits a form which somehow 'updates' my app, that same var would change itself to new var and hold that string until next update... Maybe there is some different approach than redefining a constant?? Thanks! Is there a way to redefine a constant in codeigniter? - El Forum - 11-07-2010 [eluser]InsiteFX[/eluser] NO! You can not redefine a constant... Use a database settings table and update it there. InsiteFX Is there a way to redefine a constant in codeigniter? - El Forum - 11-07-2010 [eluser]knucklehead[/eluser] oki! understood! thanks! |