孤屌一丝 发表于 2014-5-30 17:50:30

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



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);
        }
页: [1]
查看完整版本: DiliCMS里面Form.php的show方法怎么改变宽高?