Allow addition of a path with no action
Closed this issue · 1 comments
makeusabrew commented
Very simple paths should be allowed to be added, to allow for static templates which don't require any processing in an action, to avoid having to declare an empty action where not required. For example:
PathManager::addPaths(
...
array("/terms-conditions")
...
);
No action should not throw an exception but should fallback on an action declared in the abstract controller which takes the URL declared in the path and converts it into a template, converting spaces etc appropriately.
Should only work for simple URLs with no patterns in them (perhaps).
makeusabrew commented
allowing path definition without any action, falls back on simple template action, closed by d583349