library/core/class.controller.php
public function FetchView($View = '', $ControllerName = FALSE, $ApplicationFolder = FALSE) {
      $ViewPath = $this->FetchViewLocation($View, $ControllerName, $ApplicationFolder);
      
      // Check to see if there is a handler for this particular extension.
      $ViewHandler = Gdn::Factory('ViewHandler' . strtolower(strrchr($ViewPath, '.')));
      
      $ViewContents = '';
      ob_start();
      if(is_null($ViewHandler)) {   
         // Parse the view and place it into the asset container if it was found.
         include($ViewPath);
      } else {
         // Use the view handler to parse the view.
         $ViewHandler->Render($ViewPath, $this);
      }
      $ViewContents = ob_get_clean();
      
      return $ViewContents;
   }
public function FetchView($View = '', $ControllerName = FALSE, $ApplicationFolder = FALSE) {
      $ViewPath = $this->FetchViewLocation($View, $ControllerName, $ApplicationFolder);
      
      // Check to see if there is a handler for this particular extension.
      $ViewHandler = Gdn::Factory('ViewHandler' . strtolower(strrchr($ViewPath, '.')));
      
      $ViewContents = '';
      ob_start();
      if(is_null($ViewHandler)) {   
         // Parse the view and place it into the asset container if it was found.
         include($ViewPath);
      } else {
         // Use the view handler to parse the view.
         $ViewHandler->Render($ViewPath, $this);
      }
      $ViewContents = ob_get_clean();
      
      return $ViewContents;
   }
public function FetchView ( $ View = '' , $ ControllerName = FALSE , $ ApplicationFolder = FALSE ) { $ ViewPath = $ this -> FetchViewLocation ( $ View , $ ControllerName , $ ApplicationFolder ) ; // Check to see if there is a handler for this particular extension. $ ViewHandler = Gdn :: Factory ( 'ViewHandler' . strtolower ( strrchr ( $ ViewPath , '.' ) ) ) ; $ ViewContents = '' ; ob_start ( ) ; if ( is_null ( $ ViewHandler ) ) { // Parse the view and place it into the asset container if it was found. include ( $ ViewPath ) ; } else { // Use the view handler to parse the view. $ ViewHandler -> Render ( $ ViewPath , $ this ) ; } $ ViewContents = ob_get_clean ( ) ; return $ ViewContents ; }
Fetches the contents of a view into a string and returns it. Returns
false on failure.

@param string $View The name of the view to fetch. If not specified, it will use the value
of $this->View. If $this->View is not specified, it will use the value
of $this->RequestMethod (which is defined by the dispatcher class).
@param string $ControllerName The name of the controller that owns the view if it is not $this.
@param string $ApplicationFolder The name of the application folder that contains the requested controller
if it is not $this->ApplicationFolder.
Fetches the contents of a view into a string and returns it . Returns false on failure .