src/Symfony/Component/HttpKernel/HttpContentRenderer.php
/**
     * Renders a URI and returns the Response content.
     *
     * Available options:
     *
     *  * ignore_errors: true to return an empty string in case of an error
     *
     * @param string|ControllerReference $uri      A URI as a string or a ControllerReference instance
     * @param string                     $strategy The strategy to use for the rendering
     * @param array                      $options  An array of options
     *
     * @return string|null The Response content or null when the Response is streamed
     *
     * @throws \InvalidArgumentException when the strategy does not exist
     * @throws \RuntimeException         when the Response is not successful
     */
Renders a URI and returns the Response content.
Available options.

true to return an empty string in case of an error

@param string|ControllerReference $uri      A URI as a string or a ControllerReference instance
@param string                     $strategy The strategy to use for the rendering
@param array                      $options  An array of options

@return string|null The Response content or null when the Response is streamed

@throws \InvalidArgumentException when the strategy does not exist
@throws \RuntimeException         when the Response is not successful
Renders a URI and returns the Response content . Available options . true to return an empty string in case of an error @param string|ControllerReference $uri A URI as a string or a ControllerReference instance @param string $strategy The strategy to use for the rendering @param array $options An array of options @return string|null The Response content or null when the Response is streamed @throws \ InvalidArgumentException when the strategy does not exist @throws \ RuntimeException when the Response is not successful
public function render($uri, $strategy = 'default', array $options = array())
    {
        if (!isset($options['ignore_errors'])) {
            $options['ignore_errors'] = !$this->debug;
        }
        if (!isset($this->strategies[$strategy])) {
            throw new \InvalidArgumentException(sprintf('The "%s" rendering strategy does not exist.', $strategy));
        }
        return $this->deliver($this->strategies[$strategy]->render($uri, $this->requests[0], $options));
    }
public function render ( $ uri , $ strategy = 'default' , array $ options = array ( ) ) { if ( ! isset ( $ options [ 'ignore_errors' ] ) ) { $ options [ 'ignore_errors' ] = ! $ this -> debug ; } if ( ! isset ( $ this -> strategies [ $ strategy ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The "%s" rendering strategy does not exist.' , $ strategy ) ) ; } return $ this -> deliver ( $ this -> strategies [ $ strategy ] -> render ( $ uri , $ this -> requests [ 0 ] , $ options ) ) ; }
Renders a URI and returns the Response content.
Renders a URI and returns the Response content .