mam klase engine:
<?php // engine.php class engine { public function __construct () { $this -> _templates (); } public function _templates () { $this -> _templates = new templates (); } } ?>
oraz druga klase access
<?php //access.php class access extends engine { public function __construct () { parent::_templates (); } public function register () { } } ?>
i teraz chciabym zeby w obu klasach bylo zwracane Object id #2. Probowalem kombinowac cos z self ale dalej bylo to samo, albo wogole nie dzialalo.
pozdrawiam dex