Welcome Guest, Not a member yet? Register   Sign In
Is there a way to redefine a constant in codeigniter?
#1

[eluser]knucklehead[/eluser]
Maybe a dumb question Smile But, is it possible to redefine it after some form submitting?

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!
#2

[eluser]InsiteFX[/eluser]
NO! You can not redefine a constant...

Use a database settings table and update it there.

InsiteFX
#3

[eluser]knucklehead[/eluser]
oki! understood! thanks!




Theme © iAndrew 2016 - Forum software by © MyBB