postgres users authentication |
[eluser]Pascal Kriete[/eluser]
I assume you read the section on connecting to multiple databases here. When you use the normal loading call, the database is attached to the CI super object as $db. Code: $this->load->database(); // no third parameter But when you pass in that third parameter, the database object is returned instead of being tied to $db. So you would do: Code: $DB = this->load->database($dns, NULL, TRUE); If you need it for more than one method, you will want it as a class variable. Try this: Code: Class Categorias_model extends Model { Hope that helps. |
Messages In This Thread |
postgres users authentication - by El Forum - 11-09-2008, 01:22 AM
postgres users authentication - by El Forum - 11-09-2008, 03:06 PM
postgres users authentication - by El Forum - 11-09-2008, 05:27 PM
postgres users authentication - by El Forum - 11-09-2008, 09:30 PM
|