花椒

花椒

这家伙有点懒,还没写个性签名!

  • 财富值51118
  • 威望值630
  • 总积分106258

个人信息

  • 看上去分析的挺有道理的,但是感觉不至于的吧,本地有那么慢吗?

  • 赞了回复

    YII本来就是基于组件且按需加载的,所以你说得第二个其实不存在。至于第一个,没剥离出来是挺庞大,但那也仅仅是限于代码多而已。YII的核心部分耦合有点高,很难剥离。

  • 当一回搬运工~

    Installation 
    
    If you do not have Composer, you may install it by following the instructions at getcomposer.org.
    
    You can then install this package using the following command:
    
    php composer.phar require "janisto/yii2-timepicker" "*"
    or add
    
    "janisto/yii2-timepicker": "*"
    to the require section of your application's composer.json file.
    
    Usage 
    
    See jQuery Timepicker options.
    
    For example to use the timepicker with a yii\base\Model:
    
    echo TimePicker::widget([
         //'language' => 'fi',
        'model' => $model,
        'attribute' => 'created_at',
        'mode' => 'datetime',
        'clientOptions'=>[
            'dateFormat' => 'yy-mm-dd',
            'timeFormat' => 'HH🇲🇲ss',
            'showSecond' => true,
        ]
    ]);
    The following example will use the name property instead:
    
    echo TimePicker::widget([
         //'language' => 'fi',
        'name'  => 'from_time',
        'value'  => $value,
        'mode' => 'time',
    ]);
    You can also use this widget in an yii\widgets\ActiveForm using the yii\widgets\ActiveField::widget() method, for example like this:
    
    echo $form->field($model, 'field')->widget(\janisto\timepicker\TimePicker::className(), [
        //'language' => 'fi',
        'mode' => 'datetime',
        'clientOptions'=>[
            'dateFormat' => 'yy-mm-dd',
            'timeFormat' => 'HH🇲🇲ss',
            'showSecond' => true,
        ]
    ]);
    
  • 收藏了问题
    关于yii2.0里面的timepicker
  • 赞了说说
    来早了
  • 发表了说说
    来早了
  • 2015-07-24 已签到
    连续签到3天,获得了15个金钱
  • 回复了 的回答

    你说点具体的啊,就是先帮你,感觉按你现在的描述无从下手呢~

    恭喜二位,哈哈哈~

商界领袖 等级规则
106258/200000
资料完整度
60/100
用户活跃度
90/100

Ta的关注

11

Ta的粉丝

16

Ta的访客

161