用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2500|回复: 1
收起左侧

DiliCMS里面Form.php的show方法怎么改变宽高?

[复制链接]
发表于 2014-5-30 17:50:30 | 显示全部楼层 |阅读模式


public function show($name, $type, $value = '', $default = '')
        {
                $this->_find_real_value($name, $default);
                $type = '_' . $type;
                $field = array('name' => $name, 'values' => $value, 'width' => 0, 'height' => 0);
                echo $this->$type($field, $default);
        }

 楼主| 发表于 2014-5-30 17:56:01 | 显示全部楼层
我要改成这样吗?
public function show($name, $type, $value = '', $default = '',$width = 0 , $height = 0)
        {
                $this->_find_real_value($name, $default);
                $type = '_' . $type;
                $field = array('name' => $name, 'values' => $value, 'width' => $width, 'height' => $height);
                echo $this->$type($field, $default);
        }

本版积分规则