public function downloadFromView($view, array $parameters = array(),
        array $options = array())
    {
        $this->log(sprintf('Download pdf from view (%s).', $view));

        $contentDisposition = 'attachment; filename="' . $this->getName() . '"';
        return $this->generateResponse($view, $contentDisposition, $parameters,
            $options);
    }
public function downloadFromView($view, array $parameters = array(),
        array $options = array())
    {
        $this->log(sprintf('Download pdf from view (%s).', $view));

        $contentDisposition = 'attachment; filename="' . $this->getName() . '"';
        return $this->generateResponse($view, $contentDisposition, $parameters,
            $options);
    }
public function downloadFromView ( $ view , array $ parameters = array ( ) , array $ options = array ( ) ) { $ this -> log ( sprintf ( 'Download pdf from view (%s).' , $ view ) ) ; $ contentDisposition = 'attachment; filename="' . $ this -> getName ( ) . '"' ; return $ this -> generateResponse ( $ view , $ contentDisposition , $ parameters , $ options ) ; }
From a given view and parameters, create the proper response so we can
easily download the file.

@param  string   $view
@param  array    $parameters
@param  array    $options    Additional options for WKHTMLToPDF.
@return Response
From a given view and parameters create the proper response so we can easily download the file .