Ejemplo n.º 1
0
 public static function archivo($nombre, $valor = "")
 {
     $params = is_array($nombre) ? $nombre : Util::getParams(func_get_args());
     $params["value"] = utf8_encode($valor);
     return file_field_tag($params);
 }
Ejemplo n.º 2
0
/**
 * Returns an input tag of the "file" type, which won't have a default value.
 */
function file_field($objectName, $method, $object, $options = array())
{
    list($name, $value, $options) = default_options($objectName, $method, $object, $options);
    return file_field_tag($name, $options);
}