how to set values to form text fields in volt

{{ form.render('name', ['class': 'form-control']) }}.........i want set a value to the input field....how to do it in volt

edited Oct '16

I don't know about volt, but from a controller you can do this:

\Phalcon\Tag::setDefaults(array("name" => "Hello world!"));

Ya ...i know that....but i want to set the value in view

edited Oct '16

Phalcon advocates the MVC pattern, where application logic should always be in the controller part. I don't think Phalcon supports what you want out-of-the box, you'll have to implement your own code for it.