php - Creating forms with components in views - Stack Overflow

admin2025-04-15  4

Is it possible to also create forms in Hubleto using only views and ADIOS input components or do I have to make every form with React, if I want to use ADIOS input components?

Is it possible to also create forms in Hubleto using only views and ADIOS input components or do I have to make every form with React, if I want to use ADIOS input components?

Share Improve this question edited Feb 4 at 12:06 hakre 198k55 gold badges450 silver badges856 bronze badges Recognized by PHP Collective asked Feb 4 at 11:35 Rindo789Rindo789 214 bronze badges 1
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented Feb 5 at 10:40
Add a comment  | 

1 Answer 1

Reset to default 1

You can render forms in Twig views using notation, for example to render a form for the "Project" model you can create following Twig-based view:

<app-form
  uid="modify-project-form"
  model="MyApp/Models/Project"
></app-form>

Do not forget to register the Form.tsx component in your index.tsx file:

import Form from "adios/Form";
app.registerReactComponent('Form', Form);
转载请注明原文地址:http://www.anycun.com/QandA/1744723196a86729.html