BoxRecommend.php 611 Bytes
<?php
/**
 *
 * @author denisdou
 * @version 
 */

/**
 * BoxMenu helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Zend_View_Helper_BoxRecommend extends Zend_View_Helper_Abstract {
	
	/**
	 * @var Zend_View_Interface 
	 */
	public $view;
	
	/**
	 * 
	 */
	
	public function BoxRecommend($sort, $url = '/search/index/recommend') {
		$this->view->sort_id = $sort;
		$this->view->url = $url;
		return $this->view->render('box/BoxRecommend.phtml');
	}
	
	/**
	 * Sets the view field 
	 * @param $view Zend_View_Interface
	 */
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
	}
}