
$smarty->assign('img', 'name.png');
a w pliku .tpl
#site { background:#ffffff url('templates/images/{$img}') no-repeat bottom right;}
można w ten sposób wstawiać zmienną do css? Zmniejszy to wydajność strony?
$smarty->assign('img', 'name.png');
#site { background:#ffffff url('templates/images/{$img}') no-repeat bottom right;}
#site { background:#ffffff url('templates/images/{$img}') no-repeat bottom right;}
#site{literal} { background:#ffffff url('templates/images/{/literal}{$img}{literal}') no-repeat bottom right;}{/literal}
$smarty->assign('imie', 'Rafał');
Hej {$imie}