From: Ryan R. <to...@gm...> - 2004-11-04 17:56:37
|
I don't know the difficulty involved, but as a developer, I think it would make sense that the first variable would be the module, and the rest are simply dumped into a constructor for me to deal with. http://site.com{/index}/blog/view/2 (with or without the index/) Should allow the core to create the init blog object and passes in the vars from the rest of the URL. This way: http://site.com{/index}/album/view/thumb/4/6 Will create a blog object which will specify "viewing a thumbnail from page 4, image 6" Pick your example, but basically, as long as everyone agrees that the first variable is the module, should it matter how many come after it? And perhaps more importantly, should the core really care? Just my 2 cents, Ryan Roland On Thu, 04 Nov 2004 10:27:03 -0500, Matthew McNaney <ma...@tu...> wrote: > Yea I am responding to my own email. > > I don't think you can get around having a static word (like index) to > make sure that file gets called. > > Anyway, looking back at mod_rewrite, (which lets me dump index btw) I > can do this: > > http://site.com/blog/view/2 > > This assumes > 1) the first variable is the module > 2) the second is the 'action' > 3) the last is the 'id' > > Not using mod_rewrite, I could probably do this: > > http://site.com/index/blog/view/2 > > I kept the 'view' in because, again, I think people might need more > flexibility. > > Under what I proposed earlier: > http://site.com/index/blog/action/view/id/2 > > Not too bad. > > I guess the question I'm asking is how many variables do we want to > force? We could state that developers have to plan around using an value > with the 'action' key and the final variable is always an id with the > same key name. > > Or we can stretch it out to the third example allowing more flexibility. > > Or we can stick with mod_rewrite. > > What does everyone think? Which as a developer would you prefer? Let me > know so I can put this to bed. > > Thanks > > > Matt > > -- > Matthew McNaney > Internet Systems Architect > Electronic Student Services > Appalachian State University > Phone: 828-262-6493 > http://phpwebsite.appstate.edu > http://ess.appstate.edu > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > |