News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lukas Smith's Blog:
Query parameter handling in Symfony2
May 14, 2012 @ 11:56:37

Lukas Smith is looking for feedback about a question that's been in his mind a lot lately - can the handling of query parameters be made better for the Symfony2 framework (and even easier to use).

Obviously you can already access query parameters today already but it could be easier. Essentially what I want is a way for developers to easily configure what query parameters they expect and what values they expect. This is useful for several things like easier reading and validating of query parameters, self documenting API both for API docs for humans but also for machines.

He's asking for feedback and ideas from the community on a proposed solution that could make things more flexible. He also briefly mentions the route matching and how qurey parameters could cause them not to match:

For one I don't think that a mismatch on a route requirement of a query parameter cause the route to not match. However then it can quickly become confusing for the end user or it would require adding more and more syntax to handle all the different cases.
0 comments voice your opinion now!
symfony2 query parameter handling solution routing match


blog comments powered by Disqus

Similar Posts

Matthias Noback: Decoupling your (event) system

Dallas PHP User\'s Group: PHP5 Exception Handling (presentation)

PHPit.net: Handling dates and times in PHP & MySQL

Henrik Bjørnskov's Blog: Symfony2: How to do a Wizard (multistep form) with Doctrine2

Ulf Wendel's Blog: PHP mysqlnd query cache plugin quickstart is online!


Community Events





Don't see your event here?
Let us know!


series zendserver release community voicesoftheelephpant symfony podcast deployment tips introduction laravel code conference interview threedevsandamaybe framework api bugfix list language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework