##包形式路由
包形式路由就類似于java中包的使用方法;
好了,進入正題↓
http://phpstart.xyz/phpstart.version
>加載:/test/phpstart.php
new phpstart()->version();
http://phpstart.xyz/phpstart.author
>加載:/test/phpstart.php
new phpstart()->author();
http://phpstart.xyz/test.group1.dog.name
>加載:/test/group1/dog.php
new dog()->name();
您可以測試下上面的幾個URL,是不是挺有意思。
當然,你也可以用下面這種混搭的形式
http://phpstart.xyz/test/group1/dog.name
http://phpstart.xyz/test/hello.word/1/2
<font color=red>phpstart雖然提供了這種路由變量,但是更推薦目錄形式的URL</font>