Ferreteria/v0.5/URI data: Difference between revisions
< Ferreteria | v0.5
Jump to navigation
Jump to search
No edit summary |
(links) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{fmt/title|Ferreteria v0.5: URI Data system}} | |||
==About== | ==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. | 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=== | ===Pieces=== | ||
* /menu/objuri.php | * {{l/ferreteria/code|menu/objuri.php}} | ||
* /data/uri.php | * {{l/ferreteria/code|data/uri.php}} | ||
* /tree/menu/DropinLink.php | * {{l/ferreteria/code|tree/menu/DropinLink.php}} | ||
** cDropinLink now contains the Slug Registry, and looks up Features from their shorter URI-aliases in InvokeFeature() | ** {{l/ver/class|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 aliases are registered by portable config files, e.g. {{l/ferreteria/code|config/portable/uri.php}}. | ||
The primary interactions where this system comes into play: | The primary interactions where this system comes into play: |
Latest revision as of 16:22, 18 October 2022
Ferreteria v0.5: URI Data system
|
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.
- cDropinLink now contains the Slug Registry, and looks up Features from their shorter URI-aliases in InvokeFeature()
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.