Maison  >  Article  >  développement back-end  >  【ThinkPHP】TP-四种url访问的形式_URL_MODEL

【ThinkPHP】TP-四种url访问的形式_URL_MODEL

WBOY
WBOYoriginal
2016-06-13 12:12:411423parcourir

【ThinkPHP】TP-四种url访问的方式_URL_MODEL

TP-四种url访问的方式

'URL_MODEL' => 1,

 URL访问模式,可选参数0、1、2、3,代表以下四种模式:

0 (普通模式); 

1 (PATHINFO 模式);  /*默认*/

2 (REWRITE 模式); 

3 (兼容模式)    


0:http://localhost/index.php?m=模块&c=控制器&a=操作方法     [get模式]
1:http://localhost/index.php/模块[模块文件夹]/控制器/操作方法    [pathinfo模式]  /*默认*/
2:http://localhost/模块[模块文件夹]/控制器/操作方法     [rewite重写模式]
3:http://localhost/index.php?s=/模块[模块文件夹]/控制器/操作方法  [兼容模式]



Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn