BoxGoodsVip.php 776 Bytes
<?php

/**
 *
 * @author liuziyang
 * @version 
 */

/**
 * BoxGoods helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Web_View_Helper_BoxGoodsVip extends Zend_View_Helper_Abstract {

    /**
     * @var Zend_View_Interface 
     */
    public $view;

    /**
     * 
     */
    public function boxGoodsVip(array $goods) {
        if (empty($goods)) {
            return $this->view->render('index/nome.phtml');
        }
        $this->view->productData = $productData = QModels_Product_Client::getProductAllByIds($goods);
        return $this->view->render('box/goodsvip.phtml');
    }

    /**
     * Sets the view field 
     * @param $view Zend_View_Interface
     */
    public function setView(Zend_View_Interface $view) {
        $this->view = $view;
    }

}