Yii 1.1: qrcode

QR Code Generator
15 followers

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.

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

Yii::import('ext.qrcode.QRCode');
$code=new QRCode("data to encode");
$code->create();

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
@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.

#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
Downloads
  • Yii Version: 1.1
  • License: Other Open Source License
  • Developed by: emix
  • Category: Others
  • Votes: +10
  • Downloaded: 2,972 times
  • Created on: Sep 27, 2010
  • Last updated: Sep 27, 2010