This commit is contained in:
2020-03-25 17:08:02 +08:00
parent 6b9202d341
commit 0d2ef31222
35 changed files with 1212 additions and 130 deletions

View File

@@ -8,8 +8,32 @@
// +----------------------------------------------------------------------
namespace app\controller;
use \app\model\Form;
class Front extends Base {
public function index() {
return $this->fetch();
}
public function form(){
if($this->request->isAjax()){
}else{
$id = $this->request->param('id');
$name = $this->request->param('name');
$map = [];
$map[] = ['id', '=', $id];
$info = Form::where($map)->find();
$this->data = [
'info' => $info
];
return $this->fetch();
}
}
}