Welcome Guest, Not a member yet? Register   Sign In
how to declare constant in ci?
#3

[eluser]pickupman[/eluser]
You can use the file /application/config/constants.php to use define() there. I generally will start with a config file, and autoload it. Once the application is finished, I will then create a table with the values, and then create a simple settings controller. Then the end user has an easy way to change the variables dynamically.


Messages In This Thread
how to declare constant in ci? - by El Forum - 06-26-2010, 12:40 AM
how to declare constant in ci? - by El Forum - 06-26-2010, 02:10 AM
how to declare constant in ci? - by El Forum - 06-26-2010, 08:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB