This Yii2 Action component provides a very basic way on how to use the QrCodeComponent wrapper in Yii applications. Its configuration is quite simple, we just have to configure:
text
if found.param
on get
or post
request params. Defaults to get
.// On our controller
public function actions()
{
return [
'qr' => [
'class' => QrCodeAction::className(),
'text' => 'https://2amigos.us',
'param' => 'v',
'commponent' => 'qr' // if configured in our app as `qr`
]
];
}
See QrCodComponent.
© 2amigos 2013-2017