Answer the question
In order to leave comments, you need to log in
How to make a flexible component + module?
Good afternoon, I'm trying to create an "ideal" yii2 extension for my tasks.
Settings for multidomain and multilingual site.
Implemented the component itself, everything works.
The whole problem is editing these settings.
because each setting is a separate line in the table: id | name | value | field_type
field_type (checkbox, text, textarea, select)
Then you need to display these settings in different ways + pass some data (for example, select options for select), etc.
And since this is an extension, not implementation for a specific project, where I know exactly the settings, what data will be transferred, then I cannot simply build an ActiveForm type form and transfer all the data at once.
Can you please tell me how is this implemented?
Maybe take CRUD out of the extension altogether?
ps it seems to me that I'm trying to make an extension - too flexible and universal, but maybe there is some good solution
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question