功能模块构建

This commit is contained in:
2020-03-29 22:06:45 +08:00
parent ab21237919
commit b16e4ab920
7 changed files with 234 additions and 54 deletions

View File

@@ -8,33 +8,13 @@
// +----------------------------------------------------------------------
namespace app\controller\front;
use \app\model\Form;
class Index extends Base {
/**
* @title 网站首页
* @return [type] [description]
*/
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();
}
}
}