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

[eluser]dhaulagiri[/eluser]
hello guys i want to put the site name as constant in my application, so that same contant will call site name throughout the site how do i do that ?
#2

[eluser]Ajaxian64[/eluser]
in system/config/constants.php ?
#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.




Theme © iAndrew 2016 - Forum software by © MyBB