Aimeos\Shop\Controller\AccountController::downloadAction PHP Method

downloadAction() public method

Returns the html for the "My account" download page.
public downloadAction ( ) : Illuminate\Contracts\View\View
return Illuminate\Contracts\View\View View for rendering the output
    public function downloadAction()
    {
        $context = app('\\Aimeos\\Shop\\Base\\Context')->get();
        $langid = $context->getLocale()->getLanguageId();
        $view = app('\\Aimeos\\Shop\\Base\\View')->create($context, array(), $langid);
        $context->setView($view);
        $client = \Aimeos\Client\Html\Factory::createClient($context, array(), 'account/download');
        $client->setView($view);
        $client->process();
        $response = $view->response();
        return Response::make((string) $response->getBody(), $response->getStatusCode(), $response->getHeaders());
    }