summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
04fbe8f)
Forces the download of the data exported file as a poche-export file.
public function export()
{
$entries = $this->store->retrieveAll($this->user->getId());
public function export()
{
$entries = $this->store->retrieveAll($this->user->getId());
+ header('Content-Disposition: attachment; filename=poche-export');
echo $this->tpl->render('export.twig', array(
'export' => Tools::renderJson($entries),
));
echo $this->tpl->render('export.twig', array(
'export' => Tools::renderJson($entries),
));