<?php require ('Smarty.class.php'); $smarty=new Smarty; $title='Jakis tytul'; //tutaj ustawiamy tutul naglowka, opcjonalnie $smarty->assign('title', $title); //tutaj bez tytułu $smarty->display('tworz_naglowek_html.tpl'); ?>
oraz szablon tworz_naglowek_html.tpl
<html> <head> <style type="text/css"> body {font-family: Arial, Helvetica, sans-serif; font-size: 13px } li, td {font-family: Arial, Helvetica, sans-serif; font-size: 13px } hr { color: #3333cc; width=300; text-align=left} a { color: #000000 } </style> </head> <body> <img src='zakladka.gif' alt='Logo ZakładkaPHP' border=0 align='left' valign='bottom' height = 55 width = 57> <hr />
Problem jest taki, że nie chce wczytywać styli

Kod
[b]Fatal error[/b]: Smarty error: [in tworz_naglowek_html.tpl line 6]: syntax error: unrecognized tag: font-family: Arial, Helvetica, sans-serif; font-size: 13px (Smarty_Compiler.class.php, line 446) in [b]C:\php\includes\smarty\Smarty.class.php[/b] on line [b]1092[/b]
Jak usunę to co jest między znacznikami <style> to działa. Co może być źle?
EDIT//////////////////
Ok działa, dzięki Shili:)