Browse Source

1.0.4版本

xaboy 7 years ago
parent
commit
676633e1ae
1 changed files with 0 additions and 35 deletions
  1. 0 35
      test.php

+ 0 - 35
test.php

@@ -1,35 +0,0 @@
-<?php
-/**
- * FormBuilder表单生成器
- * Author: xaboy
- * Github: https://github.com/xaboy/form-builder
- */
-
-namespace Test;
-
-use FormBuilder\Form;
-
-require_once 'vendor/autoload.php';
-
-date_default_timezone_set('asia/Shanghai');
-
-//input组件
-$input = Form::input('goods_name','商品名称');
-
-//日期区间选择组件
-$dateRange = Form::dateRange('limit_time','区间日期', strtotime('- 10 day'),time());
-
-//省市二级联动组件
-$cityArea = Form::city('address','收货地址',[
-    '陕西省','西安市'
-]);
-
-//创建form
-$form = Form::create('/save.php',[
-    $input,$dateRange,$cityArea
-]);
-
-$html = $form->setMethod('get')->setTitle('编辑商品')->view();
-
-//输出form页面
-echo $html;