Welcome Guest, Not a member yet? Register   Sign In
Redux Authentication 1.4a (24th July 2008)
#81

[eluser]artiraz[/eluser]
[quote author="stb74" date="1210806204"]Do I get this error because I haven't added a model yet.

Message: Undefined property: user::$redux_auth

Filename: controllers/user.php

Line Number: 9[/quote]

Did you autoload the redux_auth in your autoload config?
#82

[eluser]Popcorn[/eluser]
^ Thank You.
#83

[eluser]Scott Boyde[/eluser]
Can I remove those posts and start again, think this heat is getting to me.
#84

[eluser]artiraz[/eluser]
[quote author="stb74" date="1210806470"]Can I remove those posts and start again, think this heat is getting to me.[/quote]

Lol? If Popcorn isnt available, I can maybe help you some 1 on 1 - otherwise Popcorn is best since he made it. Ive made myself pretty comfortable with the library (Smile Popcorn).
#85

[eluser]Scott Boyde[/eluser]
Thanks
#86

[eluser]Scott Boyde[/eluser]
If I wanted to add additional fields do I just add them as follows

Register Function

Code:
$rules['address1']     = 'trim|required';
$rules['address2']     = 'trim|required';
$rules['address3']     = 'trim|required';
$rules['postcode']     = 'trim|required';

Code:
$this->input->post('address1'),
$this->input->post('address2'),
$this->input->post('address3'),
$this->input->post('postcode'),

Add the appropriate fields into the register view.

Then add the variables to the register function in the redux_auth library
#87

[eluser]Popcorn[/eluser]
Add the inputs into the view file and the rules you need into the controller

Then you will need to add the exact names of those inputs into the redux_auth config

Code:
$config['auth']['optional_columns'] = false;

Will change to (In your case)

Code:
$config['auth']['optional_columns'] = array('address1','address2','address3','postcode');

Then as long as you have table columns with the same name it should work.

You don't need to pass any additional parameters to the register method.

Please report any problems as this is an experimental feature.

Many thanks.
#88

[eluser]Tom Glover[/eluser]
[quote author="Popcorn" date="1210891978"]Add the inputs into the view file and the rules you need into the controller

Then you will need to add the exact names of those inputs into the redux_auth config

Code:
$config['auth']['optional_columns'] = false;

Will change to (In your case)

Code:
$config['auth']['optional_columns'] = array('address1','address2,'address3','postcode');

Then as long as you have table columns with the same name it should work.

You don't need to pass any additional parameters to the register method.

Please report any problems as this is an experimental feature.

Many thanks.[/quote]

Missed a ' so it wont work, here is the new version:
Code:
$config['auth']['optional_columns'] = array('address1','address2','address3','postcode');
#89

[eluser]Popcorn[/eluser]
Thanks Tom. Fixed.
#90

[eluser]Scott Boyde[/eluser]
That works a treat, thanks.

How would I go about adding in redirection depending on the group the user belongs to.




Theme © iAndrew 2016 - Forum software by © MyBB