2017 © Pedro Peláez
 

yii2-extension yii2-confirm-widget

Yii2 Confirm Widget (e.g. SMS)

image

icron/yii2-confirm-widget

Yii2 Confirm Widget (e.g. SMS)

  • Saturday, October 3, 2015
  • by icron
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Code Coverage Scrutinizer Code Quality Latest Version Software License Total Downloads, (*1)

yii2-confirm-widget

Yii2 Confirm Widget (e.g. SMS) Example For example,, (*2)

'components' => [
        'confirm' => [
            'class' => 'icron\confirm\Confirm',
            'provider' => 'app\components\providers\ProstorSMS',
        ],
 ],
\icron\confirm\ConfirmWidget::widget([
            'model' => (new \app\models\TestModel()),
            'attribute' => 'phone',
            'clientOptions' => [
                'url' => \yii\helpers\Url::toRoute('site/confirm'),
                'btnSend' => '.btn-send',
                'btnConfirm' => '.btn-confirm',
                'inputCode' => '.input-code'
            ],
            'clientEvents' => [
                'send.ic.modal' => 'function(e){
                    console.log(e.confirmData);
                }',
                'confirm.ic.modal' => 'function(e){
                    var data = e.confirmData || {};
                    console.log(e.confirmData);
                    if (data["status"] == "success") {
                        document.location.href = "' . \yii\helpers\Url::toRoute('site/private') . '";
                    }

                }',
            ],
        ]); 
    public function actionPrivate()
    {
        /** @var Confirm $confirm */
        $confirm = Yii::$app->confirm;
        return $this->render('private', ['items' => $confirm->getConfirmedDestinations()]);
    }

The Versions

03/10 2015

dev-master

9999999-dev https://github.com/icron/yii2-confirm-widget

Yii2 Confirm Widget (e.g. SMS)

  Sources   Download

The Requires

 

The Development Requires

by Alexander L
by Vitalya Kudla

19/08 2015

v0.1

0.1.0.0 https://github.com/icron/yii2-confirm-widget

Yii2 Confirm Widget (e.g. SMS)

  Sources   Download

The Requires

 

The Development Requires

by Alexander L
by Vitalya Kudla