text input value from function models

Hi all,

I’m new in Yii2 . i want to know how i can set value from function models in textInput ?

Thanks

Have you read the excellent guide on the topic?

http://www.yiiframework.com/doc-2.0/guide-input-forms.html