[POO] Object of class login could not be converted to string
Bonsoir all,
J'ai un problème qui m'obsède ce soir! J'ai pas mal cherché et fais des tests a partir de ce que j'ai vu, mais rien à faire!
Voici mon erreur:
Citation:
Object of class login could not be converted to stringin in *** on line 51
Et voici mon code concerné:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
//La fonction sur la page class
function connection($login, $mdp)
{
//Si base ok
if($this->bdReady)
{
$this->login=$login;
$this->mdp=$mdp;
}
}
//L'appel sur la page login
$login = new login();
$login->connection($login, $mdp); |
Merci à tout âme charitable susceptible de m'aider!