src/classes/CCView.php
public function render( $file = null ) 
	{
		if ( !is_null( $file ) )
		{
			$this->file( $file );
		}
		
		$path = $this->view_path( $this->file() );
		
		// extract the view data
		extract( $this->_data );
			
		// extract globals if they exists
		if ( !empty( static::$_globals ) ) 
		{
			extract( static::$_globals, EXTR_PREFIX_SAME, 'global' );
		}
			
		ob_start();
		
		require( $path );

		return ob_get_clean();
	}
public function render( $file = null ) 
	{
		if ( !is_null( $file ) )
		{
			$this->file( $file );
		}
		
		$path = $this->view_path( $this->file() );
		
		// extract the view data
		extract( $this->_data );
			
		// extract globals if they exists
		if ( !empty( static::$_globals ) ) 
		{
			extract( static::$_globals, EXTR_PREFIX_SAME, 'global' );
		}
			
		ob_start();
		
		require( $path );

		return ob_get_clean();
	}
public function render ( $ file = null ) { if ( ! is_null ( $ file ) ) { $ this -> file ( $ file ) ; } $ path = $ this -> view_path ( $ this -> file ( ) ) ; // extract the view data extract ( $ this -> _data ) ; // extract globals if they exists if ( ! empty ( static :: $ _globals ) ) { extract ( static :: $ _globals , EXTR_PREFIX_SAME , 'global' ) ; } ob_start ( ) ; require ( $ path ) ; return ob_get_clean ( ) ; }
Render the view and return the output.

@param string		$file
@return string
Render the view and return the output .