E
E
EVOSandru62014-12-23 04:14:00
Yii
EVOSandru6, 2014-12-23 04:14:00

How to properly inherit a form in Yii?

For example, there are 2 absolutely identical models, their shapes are exactly the same. Is it better to do this thing through renderPartial or widget or what is the right way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2014-12-23
@index0h

It all depends on how you are going to use these forms further. For one or two copies, you can create a parent form and descendants, while the templates are separate for each use case. If the form will be used frequently, put it in a widget.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question