Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route parameters on setMultiple #12

Open
xmon opened this issue Dec 5, 2016 · 1 comment
Open

Route parameters on setMultiple #12

xmon opened this issue Dec 5, 2016 · 1 comment

Comments

@xmon
Copy link

xmon commented Dec 5, 2016

Hi,

I can not pass parameters to the route on function setMultiple.

I'm trying:

//...
->setMultiple(
      array(
            'delete' => array(
                  'title' => 'Delete',
                  'route' => [
                        'my_route' => [
                              'id' => 1
                        ]
                  ] 
            )
      )
)
//...

But I get:

An exception has been thrown during the rendering of a template ("Notice: Array to string conversion") in WaldoDatatableBundle:Snippet:multipleRaw.js.twig at line 2.`

Could you give me an example of how to do it?

thanks a lot

@xmon xmon changed the title route parameters on setMultiple Route parameters on setMultiple Dec 5, 2016
@waldo2188
Copy link
Owner

Hi,
See this repo https://github.com/waldo2188/datatable-sandbox, there is an example in the DefaultController. With this repo, you will have a fully functional example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants