mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fix #20513: Fix code examples in PHPDoc
This commit is contained in:
@ -21,7 +21,7 @@ use yii\web\View;
|
||||
* To use MaskedInput, you must set the [[mask]] property. The following example
|
||||
* shows how to use MaskedInput to collect phone numbers:
|
||||
*
|
||||
* ```php
|
||||
* ```
|
||||
* echo MaskedInput::widget([
|
||||
* 'name' => 'phone',
|
||||
* 'mask' => '999-999-9999',
|
||||
@ -31,7 +31,7 @@ use yii\web\View;
|
||||
* You can also use this widget in an [[ActiveForm]] using the [[ActiveField::widget()|widget()]]
|
||||
* method, for example like this:
|
||||
*
|
||||
* ```php
|
||||
* ```
|
||||
* <?= $form->field($model, 'from_date')->widget(\yii\widgets\MaskedInput::class, [
|
||||
* 'mask' => '999-999-9999',
|
||||
* ]) ?>
|
||||
|
||||
Reference in New Issue
Block a user