Symfony: Deliver Mobile Version of a Template Without Loosing the File Specific Sf_format Parameter
I needed a Server-Based mobile switch for my symfony-project. The solutions I found all used a workaround with setting the sf_format parameter to a specific mobile version. But what if you are using sf_format already for different view-types?
My Solution will use the Extension, so you can have multiple view-templates like:
actionSuccess.mobile.phpactionSuccess.phpactionSuccess.mobile.xml.phpactionSuccess.xml.php
I hope this is useful for somebdody! You might want to specify more parameters or make this a filter.