jsonrecode
- jsonrecode 2018-10-30 已签到连续签到1天,获得了5个金钱
- jsonrecode 2018-07-16 已签到连续签到1天,获得了5个金钱
- jsonrecode 2018-06-11 已签到连续签到1天,获得了5个金钱
- jsonrecode 2018-06-08 已签到连续签到4天,获得了20个金钱
- jsonrecode 2018-06-07 已签到连续签到3天,获得了15个金钱
- jsonrecode 赞了说说人和人,别说配不配,合适就好。一块钱的打火机也能点着一万块钱的香烟。 午安!
- jsonrecode 回复了 小叮当的肚兜 的回答
<?= $form->field($model, 'username')->CheckBoxList([1=>'test1',2=>'test2'],['value'=>[1,2]]) ?>
多看看源码,我找了几分钟就看到了
protected static function activeListInput($type, $model, $attribute, $items, $options = []) { $name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute); $selection = isset($options['value']) ? $options['value'] : static::getAttributeValue($model, $attribute); if (!array_key_exists('unselect', $options)) { $options['unselect'] = ''; } if (!array_key_exists('id', $options)) { $options['id'] = static::getInputId($model, $attribute); } return static::$type($name, $selection, $items, $options); }
谢谢啦 我是不大看源码==
- jsonrecode 发表了说说人生是一场孤独的修行
第二个参数的结构是怎么样的啊