php - Whether to use FOSRestBundle or just json_encode()? -


i creating api symfony 2. i'm using fosrestbundle this. since bundle , json_encode() return same result, why should use bundle?

why shouldn't use json_encode() encode array json returning response?

why should use bundle?

well depends on requirements are. if you're trying develop restful apis or fancy things should go bundle. if you're trying display json data front end go simple json_encode.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -