FusionForge

Difference between revisions of "FusionForge/Suggestions/URL relocation"

From FusionForge Wiki
Jump to: navigation, search
(Cut&paste from the planetforge.org wiki)
 
(Reformatting)
Line 2: Line 2:
  
 
Examples:
 
Examples:
http://forge.foo.com/tracker/browse.php?group_id=1&atid=18 (historical)
+
* http://forge.foo.com/tracker/browse.php?group_id=1&atid=18 (historical)
http://intranet.foo.com/forge/tracker/browse.php?... (with prefix)
+
* http://intranet.foo.com/forge/tracker/browse.php?... (with prefix)
http://192.168.0.53/tracker/browse.php?... (no vhost)
+
* http://192.168.0.53/tracker/browse.php?... (no vhost)
http://intranet.foo.com/forge/?func=tracker/browse&group_id=1&atid=18
+
* http://intranet.foo.com/forge/?func=tracker/browse&group_id=1&atid=18 (single point of entry)
(single point of entry)
 
  
 
Means: util_make_url (already gives 1+2, maybe 3)
 
Means: util_make_url (already gives 1+2, maybe 3)

Revision as of 14:52, 12 May 2009

Goal: make it easier to change URL schemes

Examples:

Means: util_make_url (already gives 1+2, maybe 3)

TODO: split URLs between component and parameters → util_make_url (tracker/browse, (group_id=>1, atid=>18)) Define naming scheme for components Make component just another parameter: func or action or do or... Build links *only* with util_make_url (no more string concatenation)

Encode actual intelligence behind URL generation in util_make_url, according to configuration

Remove all analysis of PATHINFO from pages, replace with $func/$action/$do/...

Possibly write a single index.php/dispatcher.php that dispatches actual work to real scripts (require or include or ...)

Back to the Roadmap