El Forum
05-06-2008, 03:30 PM
[eluser]neen[/eluser]
I am following the below user guide page for connecting to multiple databases:
http://ellislab.com/codeigniter/user-gui...cting.html
I have the following code in my admin controller:
And I get the following error
Any ideas? I am 100% sure my database.php file is correct...
I am following the below user guide page for connecting to multiple databases:
http://ellislab.com/codeigniter/user-gui...cting.html
I have the following code in my admin controller:
Code:
<?php
class admin extends Controller {
function __construct()
{
parent::Controller();
$agilevoice = $this->load->database('agilevoice', TRUE);
$eyebeam = $this->load->database('eyebeam', TRUE);
}
function index()
{
$agilevoice->get('ab_product');
}
}
?>
And I get the following error
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined variable: agilevoice
Filename: controllers/admin.php
Line Number: 15
Fatal error: Call to a member function get() on a non-object in /Volumes/Storage/Projects/ispcalling/system/application/controllers/admin.php on line 15
Any ideas? I am 100% sure my database.php file is correct...