ValidationAsset.php 547 Bytes
Newer Older
1 2 3 4 5 6 7 8
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\validators;
9

10 11 12
use yii\web\AssetBundle;

/**
13 14
 * This asset bundle provides the javascript files for client validation.
 *
15 16 17 18 19
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class ValidationAsset extends AssetBundle
{
20 21 22 23 24 25 26
    public $sourcePath = '@yii/assets';
    public $js = [
        'yii.validation.js',
    ];
    public $depends = [
        'yii\web\YiiAsset',
    ];
27
}