最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Creating forms with components in views - Stack Overflow

programmeradmin0浏览0评论

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 badges447 silver badges855 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 fet to register the Form.tsx component in your index.tsx file:

import Form from "adios/Form";
app.registerReactComponent('Form', Form);
发布评论

评论列表(0)

  1. 暂无评论