get提交
<?php // 本类由系统自动生成,仅供测试用途 class IndexAction extends Action { //显示用户 public function index(){ $User = M('user'); $data = $User->select(); dump($data); } //添加用户 public function add(){ $data["username"] = $_GET['username'];//接收用户名 $data["encryptedPassword"] = I('encryptedPassword','','md5'); //$_GET['encryptedPassword','','md5'];//接收密码 $data["creationDate"]="001418086136385"; $data["modificationDate"]="0"; //$data["creationDat"]= time(); $User = M('user'); $User->add($data); dump($data); dump($User); } }