422,951 Members | 2,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,951 IT Pros & Developers. It's quick & easy.

How to pass array as parameter to controller action?

100+
P: 103
How to pass array as parameter to controller action using Symfony 2? Could you please write an example how to define route, which contains unknown length array as a parameter. For instance url: http://localhost:8000/blog/post/?tags=[tag1,tag2,tag3] where number of tags varies from 0 to 100.
Also example controller for this route, where action returns values of tags array.
Nov 9 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.