条件查询方法 where 方法 可以使用 where 方法进行 AND 条件查询: Db::table ( think_user ) - where ( name , like , %thinkphp ) - where ( status , 1 ) - find(); 多字段相同条件的 AND 查询可以简化为如下方式:
支持给字段设置类型自动转换,会在写入和读取的时候自动进行类型转换处理,例如: class User extends Model { protected $ type = [ statu s = intege r, scor e = floa t, birthda y = datetim e, inf o = arra y, ]
新版支持任意层次级别的控制器,并且支持路由,例如: namespace app \ index \ controller \ one ; use think \ Controller ; class Blog extends Controller { public function index () { return $this -fetch(); } public funct