protected function Render($view="",$format = null)
	{
		$isSmarty = (strpos(get_class($this->RenderEngine),"Smarty") > -1);

		if ($isSmarty && $format == null) $format = self::$SmartyViewPrefix;

		if ($format == null) $format = '';

		if ($view == "")
		{
			// automatic binding
			$backtrace = debug_backtrace();
			$view = str_replace("Controller","", $backtrace[1]['class']) . $backtrace[1]['function'];
		}

		// if the render engine is Smarty then add the '.tpl' suffix
		$viewPath = $isSmarty ? $format.$view.".tpl" : $format.$view;

		// capture output instead of rendering if specified
		if ($this->CaptureOutputMode)
		{
			$this->DebugOutput = $this->RenderEngine->fetch($viewPath);
		}
		else
		{
			$this->RenderEngine->display($viewPath);
		}
	}
protected function Render($view="",$format = null)
	{
		$isSmarty = (strpos(get_class($this->RenderEngine),"Smarty") > -1);

		if ($isSmarty && $format == null) $format = self::$SmartyViewPrefix;

		if ($format == null) $format = '';

		if ($view == "")
		{
			// automatic binding
			$backtrace = debug_backtrace();
			$view = str_replace("Controller","", $backtrace[1]['class']) . $backtrace[1]['function'];
		}

		// if the render engine is Smarty then add the '.tpl' suffix
		$viewPath = $isSmarty ? $format.$view.".tpl" : $format.$view;

		// capture output instead of rendering if specified
		if ($this->CaptureOutputMode)
		{
			$this->DebugOutput = $this->RenderEngine->fetch($viewPath);
		}
		else
		{
			$this->RenderEngine->display($viewPath);
		}
	}
protected function Render ( $ view = "" , $ format = null ) { $ isSmarty = ( strpos ( get_class ( $ this -> RenderEngine ) , "Smarty" ) > - 1 ) ; if ( $ isSmarty && $ format == null ) $ format = self :: $ SmartyViewPrefix ; if ( $ format == null ) $ format = '' ; if ( $ view == "" ) { // automatic binding
 $ backtrace = debug_backtrace ( ) ; $ view = str_replace ( "Controller" , "" , $ backtrace [ 1 ] [ 'class' ] ) . $ backtrace [ 1 ] [ 'function' ] ; } // if the render engine is Smarty then add the '.tpl' suffix
 $ viewPath = $ isSmarty ? $ format . $ view . ".tpl" : $ format . $ view ; // capture output instead of rendering if specified
 if ( $ this -> CaptureOutputMode ) { $ this -> DebugOutput = $ this -> RenderEngine -> fetch ( $ viewPath ) ; } else { $ this -> RenderEngine -> display ( $ viewPath ) ; } }
Renders the specified view

@param string $view (optional) if not provided, the view is automatically bound using the class and method name
@param string $format (optional) defaults to $self::SmartyViewPrefix
Renders the specified view