mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			856 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			856 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * @link http://www.yiiframework.com/
 | 
						|
 * @copyright Copyright (c) 2008 Yii Software LLC
 | 
						|
 * @license http://www.yiiframework.com/license/
 | 
						|
 */
 | 
						|
 | 
						|
namespace yii\base;
 | 
						|
 | 
						|
/**
 | 
						|
 * ViewRenderer is the base class for view renderer classes.
 | 
						|
 *
 | 
						|
 * @author Qiang Xue <qiang.xue@gmail.com>
 | 
						|
 * @since 2.0
 | 
						|
 */
 | 
						|
abstract class ViewRenderer extends Component
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Renders a view file.
 | 
						|
     *
 | 
						|
     * This method is invoked by [[View]] whenever it tries to render a view.
 | 
						|
     * Child classes must implement this method to render the given view file.
 | 
						|
     *
 | 
						|
     * @param View $view the view object used for rendering the file.
 | 
						|
     * @param string $file the view file.
 | 
						|
     * @param array $params the parameters to be passed to the view file.
 | 
						|
     * @return string the rendering result
 | 
						|
     */
 | 
						|
    abstract public function render($view, $file, $params);
 | 
						|
}
 |