I am building a web application that involves forms. The framework being used is symfony2. I would like to have everything working for users without javascript, and then progres
As long as you can generalize the sort of response needed for non-ajax forms and for ajax forms, you can relegate that decision of ajax/non-ajax to another method and then simply have:
return handleResponseType(whateverInfoIsNeededToHandleIt)
You then have full control over what gets passed in to your deciding function.