Skip to content

Instantly share code, notes, and snippets.

View tiois's full-sized avatar

Jean-François Côté tiois

View GitHub Profile
@tiois
tiois / gist:5bc76c92e5ee13be0b05
Created January 28, 2015 14:33
Export Excel and force download with phpoffice/phpexcel
/**
* Export the Abonnement list to Excel
*
* @param Request $request
* @return Response
*/
public function exportAction(Request $request)
{
$path = '../excel/abonnements.xls';
$file = new \SplFileObject($path, 'w');
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT REGULAR EXPRESSION GUIDE MODIFIED 2013-03-27 : 13:08
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE (Perl Compatible Regular Expressions) engine is what BBEdit uses.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.