tp3 2 3 常量引數

2021-09-24 01:19:12 字數 1114 閱讀 1852

is_cgi 是否屬於 cgi模式  

is_win 是否屬於windows 環境

is_cli 是否屬於命令列模式

__module__ 當前模組的url位址

__controller__ 當前控制器的url位址

__action__ 當前操作的url位址

__self__ 當前url位址

__info__ 當前的path_info字串

__ext__ 當前url位址的副檔名

module_name 當前模組名

module_path 當前模組路徑

controller_name 當前控制器名

controller_path 當前控制器路徑 3.2.3新增

action_name 當前操作名

storage_type 當前儲存型別

module_pathinfo_depr 模組的pathinfo分割符

memory_limit_on 系統記憶體統計支援

runtime_file 專案編譯快取檔名

theme_name 當前主題名稱

theme_path 當前模板主題路徑

lang_set 當前瀏覽器語言

magic_quotes_gpc magic_quotes_gpc

now_time 當前請求時間(時間戳)

request_method 當前請求型別

is_get 當前是否get請求

is_post 當前是否post請求

is_put 當前是否put請求

is_delete 當前是否delete請求

is_ajax 當前是否ajax請求

bind_module 當前繫結的模組(3.2.1新增)

bind_controller 當前繫結的控制器(3.2.1新增)

bind_action 當前繫結的操作(3.2.1新增)

conf_ext 配置檔案字尾(3.2.2新增)

conf_parse 配置檔案解析方法(3.2.2新增)

tmpl_path 用於改變全域性檢視目錄(3.2.3新增)

茫茫tp3 2 3之路 day1

今天我要開啟thinkphp3.2.3的學習之路了,路過的朋友請多多指教!解壓放在web目錄下,專案名字我改為了tp323,目錄結構如圖 預設的歡迎頁面其實就是訪問的home模組下面的index控制器類的index操作方法 我們修改預設的index操作方法如下 namespace home cont...

TP3 2 3從入門到放棄 TP框架的使用

一 thinkphp框架的使用 引用框架 注意 框架的公共入口檔案thinkphp.php是不能直接執行的,該檔案只能在專案入口檔案中呼叫那個才能正常執行。require thinkphp thinkphp thinkphp.php 目的載入thinkphp框架的入口檔案thinkphp.php,相...

自定義的tp3 23分頁

分四個步驟 1,控制器 this m 是模型 count thi s m wh ere this m where this m wh ere map count p g etpa ge p getpage p getp age count,10 data thi s m wh ere this m ...