Feb18

WAP/WML / Глава 21. Tips & Tricks / Smarty 3 Manual

WAP/WML

WAP/WML templates require a php
Content-Type header
to be passed along
with the template. The easist way to do this would be to write a custom
function that prints the header. If you are using
caching, that won't
work so we'll do it using the
{insert}
tag; remember {insert} tags are not
cached! Be sure that there is nothing output to the browser before the
template, or else the header may fail.