php - mpdf page numbering {PAGENO} with smarty template engine -


i want use pagenumbering in mpdf tags how described in mpdf manual:

http://mpdf1.com/manual/index.php?tid=109

problem have used smarty template engine , there can not use mpdf tag {pageno} in header/footer direct in html template, because think smarty expected in {} parentheses variables. ( example {$test} )

so when define {pageno}, smarty syntax error: unrecognized tag 'pageno' ...

also have tried call metod, it's not working->when generate pdf, in generated pdf nothing regarding page numbering:

// set simple footer including page number

$mpdf->setfooter('{pageno}');

have idea, how use mpdf page numbering smarty template engine?

thx

just use {literal} in html template:

{literal}{pageno}{/literal} 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -