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.

Custom button (non submit) in Phalcon Form Elements

Hello everyone!

I want to know how can I make a normal button using Phalcon Form Elements, or a better, a link. I'm making a custom web form, with buttons, links, labels, etc...

I need something like <a href="/some/link/" target="_blank" class="btn btn-primary">GO TO SOME LINK</a>

I'm using Twitter's Bootstrap 4. The volt is copiled with a form that loop thru /app/forms/AwesomeForms.php

Thanks!



11.6k
Accepted
answer

Hi @falkdav in php or php templates you can use tag service to generate your links: Tag::linkTo() if you are using Volt use this {{ link_to() }}. Parameters are the same.

Custom form elements documentation

Good luck