Files
sentcms/app/controller/front/Form.php
2020-03-29 22:06:45 +08:00

41 lines
982 B
PHP

<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\controller\front;
use \app\model\Form as FormModel;
use \app\model\FormAttr;
class Form extends Base {
/**
* @title 表单页
* @return [type] [description]
*/
public function index(){
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();
}
}
}