Custom View Helper

http://blog.lysender.com/2010/06/creating-view-helpers-zend-framework/
class Zend_View_Helper_DaySelect extends Zend_View_Helper_Abstract
{

public function daySelect($name, $selected = null, $emptyFirst = true, $attributes = array())
{
$days = array_combine(range(1, 31), range(1, 31));
return $this->view->htmlSelect($name, $days, $selected, $emptyFirst, $attributes);
}
}

http://inchoo.net/tools-frameworks/zend/zend-framework-custom-view-helper/