symfonycontrib / link-button-bundle
Symfony form button as a link (ex. Cancel action).
Installs: 3 629
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- symfony/symfony: ^3.0
This package is not auto-updated.
Last update: 2024-04-13 12:12:05 UTC
README
This bundle provides an form extension for the button type to allow an HTML "" tag as a button. For example, a cancel link on a form.
Installation
1. Add the bundle to your composer.json
"require": {
...
"symfonycontrib/link-button-bundle": "^2.0"
}
2. Install the bundle using composer
$ composer update symfonycontrib/link-button-bundle
3. Add this bundle to your application's kernel:
new SymfonyContrib\Bundle\LinkButtonBundle\LinkButtonBundle(),
How to Use
To use, simply pass a URL to an url option of a form button.
** Example Form **
->add('cancel', 'button', [ 'url' => '/', ]);