我试图制定出code igniter routing代码点火器路由
我有一个网址,将看起来像
我想要打
http://example.com/account/register/normal
我也有
http://example.com/invite/something_random_here
,我想打
http://example.com/account/register/invite/something_random_here
我也有
http://example.com/register/something_random_here
,我想打
http://example.com/account/register/subscribed/something_random_here
如何设置这些路线?
虽然你的文章的测试是正确的,但是(:any)对于guid实际上工作正常(这实际上就是something_random_here)。 – Hailwood 2011-04-20 00:03:20
我不记得具体细节,用户指南指定'任何字符',所以我作出了一个安全的假设,并给了你一个选择,展示正则表达式:)很高兴(:任何)为你工作。 – Aren 2011-04-20 16:50:36