主要还是看文档把! 这里是 一天速成

url解析*

主要是url解析!

这个不会太难了!

url伪静态 url重写

image-20210416121412301

127.0.0.1/index.php/index/index

image-20210416124553639

url传参+配置haccess

image-20210416124650263

image-20210416124723253

image-20210416124900106

自己的感受:

就是 index.php人口文件后!找到 模块+控制器+函数+参数

模块可以省去!

但是必须是?s= 才能生效

url参数访问:
http://d2332e67-972a-41aa-a4d8-ca669afd8856.node3.buuoj.cn/index.php?s=admin/Login/index

url伪静态访问:
http://d2332e67-972a-41aa-a4d8-ca669afd8856.node3.buuoj.cn/index.php/admin/Login/index

去掉入口文件:
http://d2332e67-972a-41aa-a4d8-ca669afd8856.node3.buuoj.cn/admin/Login/index

模块

单一模块

单元控制器

默认模块

控制器 c

hello_word

浏览器访问时就是 helloWord

下划线可以大写!

debug

view视图

视图的化 要写view

return view()

控制器操作

image-20210416145428553

image-20210416145649595

image-20210416145942763

数据库

model 常用于处理数据库!

image-20210416152607010

image-20210416152545231

image-20210416153814915

链式连接!

-->where()-->update()

image-20210416180644679

链式方法

where

image-20210416182445227

filed 字段

image-20210416182510960

image-20210416182718461

limit

image-20210416182942742

page

image-20210416183023187

模型* model m

image-20210416183439103

模型是直接和数据库相关系的!

image-20210416183817686

image-20210416185218603

模型就是 感觉 就是 更简化了! 直接可以去操作表! 更简化了!

image-20210416235203659

模型获取器

mvc

image-20210417094828014

image-20210417095456543

image-20210417095751180

路由

image-20210417102725992

image-20210417103055395

image-20210417103353057