symfonycontrib/link-button-bundle

Symfony form button as a link (ex. Cancel action).

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 3 644

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Type:symfony-bundle

v2.0.0 2016-09-03 03:42 UTC

This package is not auto-updated.

Last update: 2024-07-06 13:31:37 UTC


README

Symfony Contrib Link Button Bundle

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' => '/',
]);