1. / 訪問默認類/默認方法(請看Config配置)
2. /index 訪問index類的默認方法
3. /index/test 訪問index類的test方法
4. /index/test/ 訪問index\test類的默認方法
5. 簡單來說最后面如帶/的會訪問默認方法
* [ ] 可以配置指定訪問格式:` 'Format' => 'php,html,' ` 最后面多了個逗號表示支持空格式
* `index/main`
* `index/main.php`
* `index/main.html`
* 支持以上三個格式訪問
* [ ] 請看配置文件,打開加載視圖
* `/index/login`訪問會加載`Lib/index.php`類的login方法,如此文件不存會會加載`View/index/login.php`視圖文件
* `/login/`訪問會加載`Lib/login.php`類的mian方法,如此文件不存會會加載`View/login.php`視圖文件
* `/login/user`訪問會加載`Lib/login.php`類的user方法,如此文件不存會會加載`View/login/user.php`視圖文件
* 視圖文件不存在時才會報錯
*****
6. URL只能 訪問公開的方法(`方法名不能帶有參數分隔符`)
```
<?php
class index{
public function main() {
echo 'hello_'.Frame::GetWeb(0);
}
}
/**
/index/main_zqphp 輸出:hello_zqphp
*/
```
*****
7. 禁止類或者禁止方法對外訪問有三種方法
* 1.不是public 方法,URL無法訪問
* 2.不管是否public,通過Config配置 ` 'StopWeb' => ['index/main']`//禁止訪問aa 禁止訪問`index/main`
* 3.可通過類前綴,方法前綴(`請看配置文件/zqphp/Config/Config.php`)
*****
* [ ] Workerman命令:`start -d|start|stop|restart|reload|status|connections`
* [Workerman啟動停止請看](http://doc.workerman.net/install/start-and-stop.html)
* [ ] Swoole命令:`start -d|start|stop|restart|status`
* [ ] Cli訪問
```
-u 訪問地址(string) 訪問地址和命令有沖突時使用-u
-k 命令(string) (help,error,config,mime) 命令有沖突時使用-k
-n 參數(string) Mime查詢的參數
1.訪問程序
寫法1:php index.php -u index/main
寫法3:php index.php index/main
2.查看幫助內容
寫法1:php index.php -k help
寫法2:php index.php help
3.查看錯誤內容
寫法1:php index.php -k error
寫法2:php index.php error
4.查看配置
寫法1:php index.php -k config
寫法3:php index.php config
5.查看Mime
寫法1:php index.php -k mime -n html
寫法2:php index.php mime html
```
- 開始使用
- 配置文件
- 路由模式
- AutoLoad類
- 啟動文件
- __construct
- SetRouting
- SetAlias
- SetStop
- SetError
- Access
- SetWorker
- SetClassFile
- SetClassDir
- Run
- OpenLoad
- LinuxStartAll
- Session類
- 使用說明
- set
- get
- delete
- pull
- has
- id
- Cookie類
- 使用說明
- set
- get
- delete
- pull
- has
- TempLets類
- 模板語法
- 模板標簽
- html
- show
- assign
- obtain
- Request類
- get
- post
- host
- referer
- getip
- localip
- header
- body
- file
- scheme
- protocolversion
- uri
- path
- querystring
- method
- Response
- SendFile
- FileStream
- SendData
- SetStatus
- SetHead
- SetMime
- WebSend
- redirect
- dumpJson
- dump
- come
- ps
- Frame類
- GetWeb
- ViewFile
- RoutingData
- SetClassFile
- SetClassDir
- GetMime
- FileMime
- LoadDir
- StartDir
- IsJson
- ArrJson
- JsonFormat
- ObStart
- GetConfig
- ConfigDir
- TempDir
- GetRunData
- GetStatic
- IsDebug
- SetDebug
- GetDebugInfo
- GlobalVariables類
- 使用說明
- set
- get
- delete
- pull
- has
- id
- Mysql類
- 新版本
- 第三方
- Thinkorm
- Medoo
- 舊版本
- Mysql 配置格式
- 項目中操作數據庫
- 項目場景
- 項目數據庫配置
- 項目數據庫中間類
- 項目中操作數據表
- 連貫操作
- where
- table
- data
- order
- field
- limit
- page
- group
- having
- join
- tabname
- union
- sql
- link
- link_base
- lock
- CURD 操作
- 寫入數據
- 數據刪除
- 數據查詢
- 數據更新
- 數據統計操作
- count
- sum
- max
- min
- avg
- 操作DEMO
- CurdTrait.php
- 項目Model層操作表.md
- Curl類
- Method類
- SslAes類
- layui_zqadmin