Ciao.
Puoi fare un view helper
http://framework.zend.com/manual/en/...w.helpers.html