Welcome Guest, Not a member yet? Register   Sign In
global variable
#1

(This post was last modified: 01-20-2023, 11:01 AM by lindaw.)

Hello ,
First thank you to all team worked in this fantastic framework, 
I have
$password = array(
        'cansave' => true,
        'Algorithm' => 'abc'
);

I want to access $password from many models I use modules\user
I tried many ways to save it in new class , other ways , but I couldn't access it from usermodel that I have.
I'm not professional developer , that is why help file not helping much , if possible step to access it will be nice.

Thank you in advance.
Reply
#2

Have a look at the Session library
https://codeigniter.com/user_guide/libra...sions.html
Reply
#3

(This post was last modified: 01-20-2023, 06:12 PM by kenjis.)

If it is configuration,

You can create a Config file:
https://codeigniter4.github.io/CodeIgnit...tion-files

And you can use it:
https://codeigniter4.github.io/CodeIgnit...tion-files
Reply
#4

(01-20-2023, 06:11 PM)kenjis Wrote: If it is configuration,

You can create a Config file:
https://codeigniter4.github.io/CodeIgnit...tion-files

And you can use it:
https://codeigniter4.github.io/CodeIgnit...tion-files

Thank you this worked
Reply




Theme © iAndrew 2016 - Forum software by © MyBB