[symfony-users] Re: csrf protection on and link_to() + method: put, post, delete - what is going on ?

2009-04-15 Thread dziobacz
ok - thx, now I understand - thx Gabor :) On 15 Kwi, 16:52, FÁSI Gábor wrote: > It will be semantically incorrect and not restful, but it will work. > > On Wed, Apr 15, 2009 at 14:58, dziobacz wrote: > > > I have read that previous ;] > > 'convention' so: delete, put and post - these are only

[symfony-users] Re: csrf protection on and link_to() + method: put, post, delete - what is going on ?

2009-04-15 Thread FÁSI Gábor
It will be semantically incorrect and not restful, but it will work. On Wed, Apr 15, 2009 at 14:58, dziobacz 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 ?

[symfony-users] Re: csrf protection on and link_to() + method: put, post, delete - what is going on ?

2009-04-15 Thread dziobacz
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 wrote: > It's not like you 'should' or 'must', it's ju

[symfony-users] Re: csrf protection on and link_to() + method: put, post, delete - what is going on ?

2009-04-15 Thread FÁSI Gábor
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_example:_the_World_Wide_Web On Wed, Apr 15, 2009 at 14:12, dziobacz wrote: > > I have read some a