Which URL style should I use?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
staar2
Forum Commoner
Posts: 83
Joined: Fri Apr 06, 2007 2:57 am

Post by staar2 »

I got also one question about routing. Which url should i use ?
1) index.php?/controller/action/arg1/arg2/ -- here i use $_SERVER['REQUEST_URI']
2) index.php?route=controller/action/arg1/arg2/arg3 - $_GET
3) index.php?controller=cont&action=index&args=.... $_GET

Or use all of them just make option in config file to change which to use ?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

If you have your Router modify your Request object rather than providing information directly to the Controller then you can pretty easily support all styles.
(#10850)
Post Reply