fix inscriptos csv
This commit is contained in:
parent
44d4fb341d
commit
e204f612a7
@ -61,7 +61,8 @@ $app->get('/program', function (Request $request, Response $response, array $arg
|
|||||||
});
|
});
|
||||||
|
|
||||||
$app->get('/inscriptos', function(Request $request, Response $response, array $args){
|
$app->get('/inscriptos', function(Request $request, Response $response, array $args){
|
||||||
exec('sqlite3 -header -csv ../db/ggdworkshop.db "select * from registro" > "inscriptos.csv"');
|
$dbfile = $this->settings['db']['path'];
|
||||||
|
exec('sqlite3 -header -csv '.$dbfile.' "select * from registro" > "inscriptos.csv"');
|
||||||
$file = 'inscriptos.csv';
|
$file = 'inscriptos.csv';
|
||||||
$fh = fopen($file,"rb");
|
$fh = fopen($file,"rb");
|
||||||
$stream = new \Slim\Http\Stream($fh);
|
$stream = new \Slim\Http\Stream($fh);
|
||||||
|
Loading…
Reference in New Issue
Block a user