-
-
Notifications
You must be signed in to change notification settings - Fork 3
Idea: Component with its own PHP #331
Copy link
Copy link
Closed
phpgt/WebEngine
#641Labels
enhancementNon-breaking improvements to existing behaviourNon-breaking improvements to existing behaviourquestionUsage questions or clarification requestsUsage questions or clarification requests
Milestone
Description
If we have a custome-element.html, why no custom-element.php with its own go function?
A special case for the ServiceContainer could provide an HTMLElement already referencing the correct element.
This is how remix does it: https://remix.run/ - a custom element like <invoice-item> can have its view in invoice-item.html and logic in invoice-item.php - the go function will need to know what invoice is being referenced.
Two ideas on how to solve this:
- Use the dynamic path as before.
- Bind an attribute to the custom element, like an ID, from the page's
gofunction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNon-breaking improvements to existing behaviourNon-breaking improvements to existing behaviourquestionUsage questions or clarification requestsUsage questions or clarification requests