Welcome Guest, Not a member yet? Register   Sign In
about config file
#1

[eluser]PHP Programmer[/eluser]
I want to use a fixed variable for admin email id to be used throughout the site. Can I declare it in config file? If yes, then how should I declare it there and how will I use it on other pages. If no, then where should I declare it?

TIA

Anuj
#2

[eluser]akkumaru[/eluser]
you may want to check the user guide about libraries/config.html

i suppose you can store anything in the config file,
but according to some experts, that is not a wise thing to do
#3

[eluser]xwero[/eluser]
You can store it in the config/config.php file if that is the only thing you are going to add. If you have more config settings you better store it in an other file in the config directory.
#4

[eluser]PHP Programmer[/eluser]
that is fine to declare it in config file but I am not aware how to do it. I have checked the manual but there is no specific solution I found there.
#5

[eluser]xwero[/eluser]
all config files, except database and form_vamidation files, have the same structure per line
Code:
$config['name'] = 'value';




Theme © iAndrew 2016 - Forum software by © MyBB