Skip to content

kematjaya0/url-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-bundle

  1. Installation
    composer require kematjaya/url-bundle
    
  2. dump available route path
    php bin/console url:configure
    
    default will update on file 'resources/url.yaml'
  3. 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}) }}
    
    1. configation (optional)
      url:
         resources_dir: '%kernel.project_dir%/resources'
         resources_file: 'url.yaml'
         whitelist: []
      

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages