ThinkPHP学习笔记(七)实例化中create方法的作用,以及令牌的使用
其中的success的模板,可以在ThinkPHP中的example中搜索到,然后放入tpl下的default下的Public中
create使用
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>CURD</title></head><body><form action="__URL__/add" method="post"><input type="text" name="username"/><input type="text" name="password"/><input type="submit" value="提交"/><!--{__NOTOKEN__}--></form></body></html>