Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon\Forms volt convert

Hi all How to convert <button type="submit" class="btn btn-primary">Sign in</button> in volt

http://docs.phalconphp.com/en/latest/reference/volt.html

    {{ submit_button('Sign in', "class" :"btn btn-primary") }}


37.7k

Hi Raistlfiren {{ submit_button('Send', "class" :"btn btn-primary") }} = <input type="submit" value="Send" class="btn btn-primary"> not html button

duythien,

I am sorry. It doesn't look like Phalcon supports the button. It looks like you will have to create the call for it using the Phalcon\Tag class. Here is how you can do it: http://docs.phalconphp.com/en/latest/reference/tags.html#html5-elements-generic-html-helper



3.3k
Accepted
answer

And here is the final result -

{{ tag_html("button", ["type": "submit", "class": "btn btn-primary"], false, true, true) }}
    Sign in
{{ tag_html_close("button") }}


37.7k

Thank you Raistlfiren