[eluser]ray73864[/eluser]
ok, so i have gotten that worked out, but now in my 'dashboard' controller it is doing a 'has_access' but it is coming back with:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: group_table
Filename: libraries/Auth.php
Line Number: 468
my config/auth.php file:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['input_config'] = array(
'login' => array(
'identifier' => 'username', //name of the input that holds the identifier used for login
'password' => 'password', //name of the input that holds the password used for login
'remember' => 'remember_me' //name of the checkbox that says wether to remember the user or not
)
);
$config['database_config'] = array(
'user_table' => array(
'name' => 'fa_user',
'user_primary_key_column' => 'ID',
'user_primary_key_column_is_auto_increment' => true,
'user_identifier_column' => 'username',
'user_password_column' => 'password',
'user_salt_column' => ''
),
'member_table' => array (
'name' => 'member',
'group_foreign_key_column' => 'group_id',
'user_foreign_key_column' => 'user_id'
)
);
$config['encryption_order'] = '%password%';
$config['use_database'] = TRUE;
$config['use_database_user_groups'] = FALSE;
$config['use_database_rights'] = FALSE;
/* End of file database.php */
/* Location: ./system/application/config/auth.php */
my controller/dashboard.php file:
Code:
function index()
{
if ($this->auth->has_access('admin'))
{
$data['settings'] = $this->settings;
$data['the_page'] = 'admin/admin';
$this->load->view('layout', $data);
}
}