Yii 1.1: qrcode

QR Code Generator

This extension generates QR Code matrix.




  • Yii 1.0 or above


  • Extract the release file under protected/extensions


See the following code example:

$code=new QRCode("data to encode");
// to flush the code directly
// to save the code to file

Change Log

September 27, 2010

  • Initial release.

Total 4 comments

#6613 report it
rmandovnz at 2012/01/21 02:31pm
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&paramName=paramValue" cannot be displayed because it contains erros" and nothing more, no layout, no my view.

im only put this

$code=new QRCode("data to encode");

Thank you for any answer and happy coding

#1978 report it
aleksdj at 2010/10/24 12:04pm
Thankyou , now its working

Thankyou , now its working

#1966 report it
Antonio Ramirez at 2010/10/22 08:24am

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.

#1953 report it
aleksdj at 2010/10/19 08:05am
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

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: Other Open Source License
  • Developed by: emix
  • Category: Others
  • Votes: +10
  • Downloaded: 5,533 times
  • Created on: Sep 27, 2010
  • Last updated: Sep 27, 2010