public function exportAction( Request $request, $resource, $site = 'default' )
	{
		$cntl = $this->createAdmin( $request, $site, $resource );

		if( ( $html = $cntl->export() ) == '' ) {
			return $cntl->getView()->response();
		}

		return $this->getHtml( $html );
	}
public function exportAction( Request $request, $resource, $site = 'default' )
	{
		$cntl = $this->createAdmin( $request, $site, $resource );

		if( ( $html = $cntl->export() ) == '' ) {
			return $cntl->getView()->response();
		}

		return $this->getHtml( $html );
	}
public function exportAction ( Request $ request , $ resource , $ site = 'default' ) { $ cntl = $ this -> createAdmin ( $ request , $ site , $ resource ) ; if ( ( $ html = $ cntl -> export ( ) ) == '' ) { return $ cntl -> getView ( ) -> response ( ) ; } return $ this -> getHtml ( $ html ) ; }
Exports the requested resource object

@param Request $request Symfony request object
@param string $resource Resource location, e.g. "product"
@param string $site Unique site code
@return Response Generated output
Exports the requested resource object