审查视图

application/admin/command/Crud/stubs/mixins/radio.stub 255 字节
王智 authored
1 2 3 4 5 6 7

    public function {%methodName%}($value, $data)
    {
        $value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
        $list = $this->{%listMethodName%}();
        return isset($list[$value]) ? $list[$value] : '';
    }