Mam klasę a która to dziedziczy po klasie smarty i w niej ustawiam sobie
wszystkie pathe, casching, debuging itd...
teraz chciałem aby klasa b dziedziczyła od klasy a jej funkcjonalność i mieć możliwość
dodania do niej kolejnych funkcji tyle że dostaje błąd
Warning: Smarty error: unable to read resource: "a.tpl" in C:\...\Smarty.class.php on line 1092
<?php class a extends Smarty { public function __construct() { $this -> Smarty(); $this -> template_dir = '../templates/'; $this -> compile_dir = '../templates_c/'; $this -> config_dir = '../configs/'; $this -> cache_dir = '../cache/'; $this -> compile_check = true; $this -> debugging = true; $this -> force_compile = true; $this -> caching = 0; } } class b extends a { public function __construct() { } public function __destruct() { } } ?>
kiedy operuje na samej klasie a wszystko działa ale gdy b to dostaje ten błąd.