Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter

[eluser]NotSmilie[/eluser]
Hi,
Great plugin! Big Grin

I'm going to use it for the public end-users in my application. The administrator backend and user front-end is two seperated databases.
I will need the functions to be available from my admin application as well, so how do I define that flexi-auth should use another database, than the default one?

(I wasn't able to find this in the user docs, installation guide, or config file).

I attempted this:
Code:
$this->load->database('market');
        //$DB1 = $this->load->database('market', TRUE);
        $this->load->library('flexi_auth');

        $data['query'] = $this->db
            ->get('user_accounts');

        $this->db->close();
But it didn't seem to work as I get those:
Table 'admincp.user_accounts' doesn't exist (wrong db)
&
Message: Creating default object from empty value

Filename: models/flexi_auth_lite_model.php (I assume it's because it's loading the wrong db)


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 03-03-2013, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB