Extends fluid with expressions to retrieve current's ActionRequest values
Robin Krahnen
75beea31dc
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
|
||
---|---|---|
.woodpecker | ||
Classes | ||
Configuration | ||
Resources/Private | ||
Tests/Functional | ||
composer.json | ||
License.txt | ||
README.md |
DigiComp.FluidCurrentControllerExpression
This extends the fluid language with an expression to allow you to access values of the current action request.
<html>
<title>Welcome to {#currentController.name} {#currentController.actionName}</title>
</html>
The pattern is {#currentController.PROPERTY_OF_ACTIONREQUEST}
- all properties are possible. To avoid duplicated "controller" in the expression you are allowed to omit them (even if it works, if you do not).
It is really helpful if you try to generalize partials - being an expression, it is not depending on any aliased namespace, which might change in deeper structures.