Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function init() |
||
15 | { |
||
16 | parent::init(); |
||
17 | $id = $this->options['id']; |
||
18 | $clientSideKey = Yii::$app->get('braintree')->clientSideKey; |
||
19 | $view = $this->getView(); |
||
20 | BraintreeAsset::register($view); |
||
21 | $view->registerJs("braintree.setup('$clientSideKey', 'custom', {id: '$id'});"); |
||
22 | $this->fieldClass = ActiveField::className(); |
||
23 | } |
||
24 | |||
25 | } |