<?php class template { function load_file($template, $file) { { } else { } return $result; } function make_arg($file, $whatreplace, $result) { return $result; } function remove($file, $name) { return $file; } } { $prawaadmina=0; } $template=new template(); { $main_template=$template->load_file("default", "test"); } $main_template=$template->make_arg($main_template, "tytul", "jakistam tytul"); if($prawaadmina==0) { $main_template=$template->remove($main_template, "<!--endif:mam_dostep_do_admina-->"); } ?>
w test.php
Gdy wejdę w przeglądarke wyskakuje :
Warning: fopen(templates/default/test.html) [function.fopen]: failed to open stream: No such file or directory in D:\INTERNET\WebServ\httpd\template\index.php on line 6
Nie można wczytać skórki
Ja nie mam pomysłu jak to rozwiązać :|