- Installation
composer require kematjaya/url-bundle
- dump available route path
default will update on file 'resources/url.yaml'
php bin/console url:configure
- usage
{{ link_to('route_path', {id: data.id}, {class: "btn btn-xs btn-outline-info", 'icon': '<span class="fa fa-edit"></span>', label: 'edit'|trans}, {action: 'update', object: data}) }} {{ delete_tag('delete' ~ data.id, 'route_path', {id: data.id}, {class: "btn btn-xs btn-outline-danger", 'icon': '<span class="fa fa-trash"></span>', label: 'delete'|trans}, {action: 'delete', object: data}) }}
- configation (optional)
url: resources_dir: '%kernel.project_dir%/resources' resources_file: 'url.yaml' whitelist: []
- configation (optional)