~~~
<?php
require __DIR__ . '/zqphp/AutoLoad.php';
$Obj = new \zqphp\AutoLoad(__DIR__ . '/application');
//路由綁定域名
$Obj->SetRouting(function () {
return ['user','www.xxx.com',['id'=>1]];
});
//路由別名
$Obj->SetAlias('index/qq', 'index/main', 'GET,POST');
//禁止訪問
$Obj->SetStop('index/test', 'GET,POST');
//訪問路由
$Obj->Access('index/demo', function () {
echo "當通過GET或者POST可以訪問到此路由";
}, 'GET,POST');
//設置錯誤接收
$Obj->SetError(function ($data,$error){
dump('==============處理后的錯誤內容==============');
dump($data);
dump('==============處理前的錯誤內容==============');
dump($error);
});
//設置Worker
$Obj->SetWorker(['count'=>5,'name'=>'zqphp']);
//類指向文件
$Obj->SetClassFile('user\test','/www/wwwroot/user/test.php');
//命名空間指向文件夾
$Obj->SetClassDir([
'think' =>['@Events/topthink/think-helper/src/','@Events/topthink/think-orm/src/']
]);
//項目啟動
$Obj->Run('8080');
~~~
- 開始使用
- 配置文件
- 路由模式
- 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