Welcome Guest, Not a member yet? Register   Sign In
Reference variable encryption_key from config
#1

[eluser]spheroid[/eluser]
I need to use the $config['encryption_key'] variable I've set in file application/config/config.php. I need to do this in a controller and a model each for registration and authentication for login.

How can I reference this variable without having to put this in each my controller and model:

Code:
$salt = "RANDOM STRING";

Thanks in advance!
#2

[eluser]spheroid[/eluser]
Nevermind, answered here: http://ellislab.com/forums/viewthread/62303/




Theme © iAndrew 2016 - Forum software by © MyBB