노트--ThinkPHP URL 모드
1001 단어 ThinkPHP
1),3. “html shtml”,4. (true/false)5.localhost)
echo U('Index/user',array('id'=>1),'html',false,'localhost');
}
public function user(){
echo 'id is:'.$_GET['id'].'
';
echo ' INDEX user ';
}
/*
URL_MODEL
return array(
//' '=>' '
'name'=>'Tim',
'URL_MODEL'=>0,
);
1. 1 (pathinfo 1)
http://localhost/test313/index.php/Index/user/id/1.html
2. 0
http://localhost/test313/index.php?m=Index&a=user&id=1
3. 2
http://localhost/test313/Index/user/id/1.html
4. 3 ( web )
http://localhost/test313/index.php?s=/Index/user/id/1.html
*/
}
1. U 방법의 사용법을 주의한다
2. URL 주의MODEL 설정
3. 여러 가지 방법의 차이에 주의한다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
ThinkPHP의 도메인 간 공유 세션한동안 의 연구 를 거쳐 마침내 돌파구 를 이루었다 두 웹 사이트: think.local think2.local 주요 원리는 다음과 같습니다. 1、think에서 통과.local 실행 js 스크립트,think2.loc...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.