D
D
Dmitry Baibukhtin2015-04-14 16:53:35
Yii
Dmitry Baibukhtin, 2015-04-14 16:53:35

How to replace the class in the name of the input field with your own text?

Good afternoon. At the moment, any field has a BaseConfig prefix (model name), can I put my own text instead? For example SettingsForm? According to the idea, this should be implemented through the ActiveForm widget parameter, but I did not find it. Tell me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Baibukhtin, 2015-04-14
@PiloTeZ

Solved the problem by overriding the Model::formName() method on the model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question