Skip to content

[FEATURE] Create new ViewHelper <register:uri.action>#281

Merged
garbast merged 4 commits into
evoWeb:developfrom
koehnlein:feature/viewhelper-url
Jul 3, 2025
Merged

[FEATURE] Create new ViewHelper <register:uri.action>#281
garbast merged 4 commits into
evoWeb:developfrom
koehnlein:feature/viewhelper-url

Conversation

@koehnlein

@koehnlein koehnlein commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces a new ViewHelper <register:uri.action> similar to existing <register.link.action>

While the functionality of the existing ViewHelper keeps untouched, the new ViewHelper only returns the URL instead of a full <a> tag.

To ensure, the functionality of both ViewHelpers does not break, functional tests for both ViewHelpers have been added.

Resolve #280

@koehnlein koehnlein force-pushed the feature/viewhelper-url branch from 3bedc5f to 1e6dd56 Compare June 27, 2025 14:47
@koehnlein koehnlein changed the title Introduce functional test for existing ViewHelper [TASK] Create new ViewHelper <register:uri.action> Jun 27, 2025
@koehnlein koehnlein changed the title [TASK] Create new ViewHelper <register:uri.action> [FEATURE] Create new ViewHelper <register:uri.action> Jun 27, 2025
@koehnlein koehnlein marked this pull request as ready for review June 27, 2025 16:00
@koehnlein

Copy link
Copy Markdown
Contributor Author

@evoWeb Would be nice to get some feedback. 🙂 To avoid duplicate code, I created ActionUriTrait

@garbast

garbast commented Jun 27, 2025

Copy link
Copy Markdown
Collaborator

I like the approach to integrate tests and having a clear idea to make sure that the viewhelper are working as expected. That is nice to see.

Also I have one wish. Please revert the commit [64c2805] with the trait. I'd rather see duplicate code then traits. Also the link usually has one argument more than the uri. Having a look on how the core action viewhelpers are differing a trait is not that helpful either.

@koehnlein

Copy link
Copy Markdown
Contributor Author

@garbast The commit is reverted and the trait does not exist anymore

@garbast garbast merged commit 8150c59 into evoWeb:develop Jul 3, 2025
6 checks passed
@garbast

garbast commented Jul 3, 2025

Copy link
Copy Markdown
Collaborator

Thank you for your work on adding the viewhelper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: ViewHelper register:uri.action

2 participants