Skip to content

Instantly share code, notes, and snippets.

@skoop
Created January 12, 2011 10:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skoop/775974 to your computer and use it in GitHub Desktop.
Save skoop/775974 to your computer and use it in GitHub Desktop.
<?php
public function executeQrcode(sfWebRequest $request)
{
require_once sfConfig::get('sf_lib_dir').
'/vendor/phpqrcode/qrlib.php';
$this->getResponse()->setContentType('image/png');
QRcode::png($request->getParameter('text'));
return sfView::NONE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment