é®é¢è§£æï¼
thinkphp5ç³»åéè¦è·åå½åç模åãæ§å¶å¨ä»¥åæ¹æ³å称ï¼å¯ä»¥ä½¿ç¨èªå¸¦çRequestç±»ï¼ä¹å¯ä»¥ä½¿ç¨requestå©æå½æ°ãæ¥ä¸æ¥ä¸¾ä¾è¯´æï¼
å设æ们ç°å¨è®¿é®çå°åæ¯index/member/addï¼æ们æ¥è·åè¿ä¸ªå°åç模åãæ§å¶å¨ãæ¹æ³å称
1ãè·å模ååï¼
echo "å½å模åå称æ¯ï¼" . request()->module();è¾åºç»æï¼
2ãè·åæ§å¶å¨åï¼
echo "å½åæ§å¶å¨å称æ¯ï¼" . request()->controller();è¾åºç»æï¼
3ãè·åæ¹æ³åï¼
echo "å½åæä½å称æ¯ï¼" . request()->action();è¾åºç»æï¼