Created
December 12, 2013 10:38
-
-
Save zhoumengkang/7926066 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 系统变量名称设置 */ | |
| 'VAR_GROUP' => 'g', // 默认分组获取变量 | |
| 'VAR_MODULE' => 'm', // 默认模块获取变量 | |
| 'VAR_ACTION' => 'a', // 默认操作获取变量 | |
| 当前方法里面的分组名,模型名,方法名 | |
| echo ACTION_NAME; | |
| echo MODULE_NAME; | |
| echo GROUP_NAME; | |
| 控制url的访问方式和U函数的构造 | |
| 'URL_MODEL' => 1 | |
| 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式); 3 (兼容模式) 默认为PATHINFO 模式,提供最好的用户体验和SEO支持 | |
| 当前项目地址 __APP__ | |
| URL_MODEL对其有影响 | |
| 如果是0,1 echo __APP__ 结果是"/object/index.php" | |
| 如果是2 echo __APP__ 结果是"/object" | |
| 如果是3 echo __APP__ 结果是"/object/index.php?s" | |
| $url = __APP__.'/'.implode($depr,array_reverse($var)); | |
| $url = __APP__.implode($depr,array_reverse($var)); |
zhoumengkang
commented
Dec 12, 2013
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment