BoxDiscount.php
659 Bytes
<?php
/**
* BoxColor helper
*
* @uses viewHelper Zend_View_Helper
*/
class Web_View_Helper_BoxDiscount extends Zend_View_Helper_Abstract {
/**
* @var Zend_View_Interface
*/
public $view;
/**
*
*/
public function BoxDiscount() {
$this->view->discount = array(
'0.1,0.3' => '1~3折',
'0.4,0.6' => '4~6折',
'0.7,0.9' => '7~9折'
);
return $this->view->render('box/discount.phtml');
}
/**
* Sets the view field
* @param $view Zend_View_Interface
*/
public function setView(Zend_View_Interface $view) {
$this->view = $view;
}
}