Classes/Controller/AccountController.php
public function downloadAction()
	{
		$paths = Base::getAimeos()->getCustomPaths( 'client/html' );
		$context = $this->getContext();
		$view = $context->getView();

		$client = \Aimeos\Client\Html::create( $context, 'account/download' );
		$client->setView( $view );
		$client->process();

		$response = $view->response();
		$this->response->setStatus( $response->getStatusCode() );

		foreach( $response->getHeaders() as $key => $value ) {
			$this->response->setHeader( $key, implode( ', ', $value ) );
		}

		return (string) $response->getBody();
	}
public function downloadAction()
	{
		$paths = Base::getAimeos()->getCustomPaths( 'client/html' );
		$context = $this->getContext();
		$view = $context->getView();

		$client = \Aimeos\Client\Html::create( $context, 'account/download' );
		$client->setView( $view );
		$client->process();

		$response = $view->response();
		$this->response->setStatus( $response->getStatusCode() );

		foreach( $response->getHeaders() as $key => $value ) {
			$this->response->setHeader( $key, implode( ', ', $value ) );
		}

		return (string) $response->getBody();
	}
public function downloadAction ( ) { $ paths = Base :: getAimeos ( ) -> getCustomPaths ( 'client/html' ) ; $ context = $ this -> getContext ( ) ; $ view = $ context -> getView ( ) ; $ client = \ Aimeos \ Client \ Html :: create ( $ context , 'account/download' ) ; $ client -> setView ( $ view ) ; $ client -> process ( ) ; $ response = $ view -> response ( ) ; $ this -> response -> setStatus ( $ response -> getStatusCode ( ) ) ; foreach ( $ response -> getHeaders ( ) as $ key => $ value ) { $ this -> response -> setHeader ( $ key , implode ( ', ' , $ value ) ) ; } return ( string ) $ response -> getBody ( ) ; }
Renders the account download
Renders the account download