http://127.0.0.1/cmf/index.php?m=home&c=index&a=index
PATHINFO模式的URL是http://127.0.0.1/cmf/index.php/home/index/index
class IndexController extends Controller {
public function index(){
//dump($_GET);
echo U('index');
}
}
http://127.0.0.1/wish/index.php?m=home&c=index&a=index
或define ('APP_NAME' , 'App');
define ('APP_PATH' , './App/');
define ('APP_DEBUG' , 'TRUE');
include './ThinkPHP/ThinkPHP.php'
会在App目录下默认自动生成Home目录(Home模块)·define('BIND_MODULE','Admin');
就会在App目录下自动生成Admin模块,然后把这行删掉就行了return array(
//'配置项'=>'配置值'
// 'APP_GROUP_LIST'=>'Index,Admin',
// 'DEFAULT_GROUP'=>'Index',
'DEFAULT_MODULE'=>'Admin',
);
function p($array) { dump($array,1,'路径:以网站根目录为根路径,比如 C:\xampp\htdocs\wish313,则wish313是根路径',0); }
'TMPL_PARSE_STRING'=>array( '__PUBLIC__'=>__ROOT__. '/' .APP_NAME.'/Tpl/Public', ),
define ('APP_DEBUG' , 'TRUE');打开SHOW_PAGE_TRACE
'SHOW_PAGE_TRACE'=>'true',