Welcome Guest, Not a member yet? Register   Sign In
Can I change the database for is_unique?
#5

[eluser]Matalina[/eluser]
change it back after the rule?

*edit* That wouldn't work really...

But really none of my controllers are touching the database directly so it's not sticking with one programming style. I was just curious if it was possible. Most of my database calls in the models I call directly form a database object.

Code:
private $auth; // Auth Database

  function __construct() {
    parent::__construct();
    // Load Databases
    $this->auth = $this->load->database('default',TRUE);
  }


Messages In This Thread
Can I change the database for is_unique? - by El Forum - 02-21-2012, 02:54 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:01 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:22 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:25 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:36 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:43 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:50 PM
Can I change the database for is_unique? - by El Forum - 02-21-2012, 03:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB