Cytat
Parse error: syntax error, unexpected '{' in /home.7/h/z/l/hzlproje/www/test/index.php on line 7
Jeszcze dołączę jakie mam pliki:
index.php
<?php // ustaw sciezke do biblioteki // zaladuj biblioteke require(OPT_DIR.'opt.class.php'); try { // utworz obiekt parsera $tpl = new optClass; // skonfiguruj OPT $tpl -> root = 'templates/'; $tpl -> compile = 'templates_c/'; $tpl -> gzipCompression = 1; // wyslij naglowki $tpl -> httpHeaders(OPT_HTML); // przetwarzanie szablonu $tpl -> assign('title', 'Test title'); $tpl -> assign('tekst', 'Jakiś tam tekst.'); $tpl -> parse('index.tpl'); } catch(optException $exception) { optErrorHandler($exception); } ?>
templates/index.tpl
Proszę o pomoc dziękuję.
A pliki typu opt.class.php są w katalogu /opt