class A { public function config() { // tu wczytuje konfig z pliku w formie tablicy $this->config = include 'plik.php'; } }
class B { $this->config_z_klasy_A }
Jak mogę odczytać konfig w klasie B, który jest 'pobierany' w klasie A?
class A { public function config() { // tu wczytuje konfig z pliku w formie tablicy $this->config = include 'plik.php'; } }
class B { $this->config_z_klasy_A }