This extension generates QR Code matrix.
Resources ¶
Documentation ¶
Requirements ¶
- Yii 1.0 or above
Installation ¶
- Extract the release file under
protected/extensions
Usage ¶
See the following code example:
Yii::import('ext.qrcode.QRCode');
$code=new QRCode("data to encode");
// to flush the code directly
$code->create();
// to save the code to file
$code->create('/valid/path/to/file.png');
Change Log ¶
September 27, 2010 ¶
- Initial release.
How to flush the image directly?
Hello, I would like to see an example of flushing the image directly, because in my case it shows the binary code of the image (I guess), and I ended saving the image first and showing it with an img tag.
thanks in advanced,
alex
@aleksdj
You should set the headers first before pushing it from the server and make sure that nothing but the image is flushed from the response. It will work.
Thankyou , now its working
Thankyou , now its working
Trying to flushing directly
Hello, Yii´s comment ext reader!!!
In my case its render an image with "The image http://localhost/app/index.php?r=controller/action¶mName=paramValue" cannot be displayed because it contains erros" and nothing more, no layout, no my view.
im only put this
Yii::import('ext.qrcode.QRCode'); $code=new QRCode("data to encode"); $code->create();
Thank you for any answer and happy coding
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.