Ferreteria/v0.5/URI data: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
m (2 revisions imported: moving this project here)
(No difference)

Revision as of 16:44, 22 May 2022

About

The URI data system encodes certain session-state information – generally related to the current page and actions to be performed in it – in URLs which can be used as links. It also decodes URLs to determine which objects should be accessed in order to select pages and take actions while seamlessly preventing unintended action-repeats when a page is reloaded within the browser.

Pieces

  • /menu/objuri.php
  • /data/uri.php
  • /tree/menu/DropinLink.php
    • cDropinLink now contains the Slug Registry, and looks up Features from their shorter URI-aliases in InvokeFeature()
      • The aliases are registered by portable config files, e.g. /config/portable/uri.php

The primary interactions where this system comes into play:

  • We have a URL, need to figure out what it's asking us to do (which Feature, mainly).
  • We have a Feature we want to link to, need to ask it to generate its part of the URL.

Related

This system is also used by the dropin system.