Can't connect to multiple databases |
[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: Code: <?php And I get the following error Quote:A PHP Error was encountered Any ideas? I am 100% sure my database.php file is correct...
[eluser]Colin Williams[/eluser]
In class methods and functions in general, when you define a variable inside the method/function, it is only available inside the method/function. So, just because you defined the variable in the constructor doesn't mean it's available later in index(). With classes, you can share variables between methods by defining them as properties (like $this->eyebeam, $this->agilevoice). |
Welcome Guest, Not a member yet? Register Sign In |