[nycphp-talk] Do you use Pretty URLs
Anirudh Zala
arzala at gmail.com
Thu Dec 13 01:01:31 EST 2007
On Thursday 13 Dec 2007 10:10:50 Rob Marscher wrote:
> On Dec 12, 2007, at 1:32 PM, Cliff Hirsch wrote:
> > It seems to me that a more robust method would be to have something
> > like /param1/value1/param2/value2/.../paramn/valuen
>
> If I remember correctly, this is the default url structure for the
> Zend Framework.
I prefer following pattern of URL.
protocol://domain (application)/module/action?param1=value1¶m2=value2
or
protocol://domain (application)/module/action/param1/value1/param2/value2
e.g.
http://www.myapp.com/user/view?id=1&type=2
or
http://www.myapp.com/user/view/id/1/type/2
1st one is more clear as it clearly separates "query string" portion from rest
of URL scheme.
Thanks
Anirudh Zala
More information about the talk
mailing list