PHP code example of kartik-v / yii2-field-range
1. Go to this page and download the library: Download kartik-v/yii2-field-range library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kartik-v / yii2-field-range example snippets
use kartik\field\FieldRange;
use kartik\widgets\ActiveForm;
$form = ActiveForm::begin();
echo FieldRange::widget([
'form' => $form,
'model' => $model,
'label' => 'Enter start and end points',
'attribute1' => 'start_point',
'attribute2' => 'end_point',
'type' => FieldRange::INPUT_TEXT,
]);
ActiveForm::end();