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);
}
我要改成这样吗?
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]