It will be semantically incorrect and not restful, but it will work. On Wed, Apr 15, 2009 at 14:58, dziobacz <aaabbbcccda...@gmail.com> wrote: > > I have read that previous ;] > 'convention' so: delete, put and post - these are only names ? So I > could use method 'delete' in link_to() to insert something in > database ? It will be strange but still correct ? :) > > > On 15 Kwi, 14:18, FÁSI Gábor <maerl...@gmail.com> wrote: >> It's not like you 'should' or 'must', it's just a convention to use >> delete for deletion, put for creation or update. >> Check >> this:http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_... >> >> On Wed, Apr 15, 2009 at 14:12, dziobacz <aaabbbcccda...@gmail.com> wrote: >> >> > I have read some articles about method put, post and delete in symfony >> > but I still don't understand that. >> > If I have: link_to( 'click me', '/profile/users/action/57', array >> > ('method' => '.......') ) >> >> > 1. I want to delete something with id=57 from database. Should I use >> > method delete ? >> > 2. I want to update something with id=57 in database. Should I use >> > method put or post ? >> > 3. I want to insert something with id=57 in database. Should I use >> > method put or post ? >> >> > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---