allora ho provato ad aggiungere alla classe il seguente metodo:
ed ora in ogni classe che mi serve usare il db utilizzoCodice PHP:
public function getDb(){
return $this->_istance;
}
$db=DB::getIstance();
$db=$db->getDb();
č corretto?
allora ho provato ad aggiungere alla classe il seguente metodo:
ed ora in ogni classe che mi serve usare il db utilizzoCodice PHP:
public function getDb(){
return $this->_istance;
}
$db=DB::getIstance();
$db=$db->getDb();
č corretto?