노트--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. 여러 가지 방법의 차이에 주의한다.

좋은 웹페이지 즐겨찾기