destroy method on RestHandler

4 views
Skip to first unread message

loudoweb

unread,
Jan 21, 2010, 5:40:15 PM1/21/10
to haXigniter
hello,
first of all, thanks for the new release ;)
I have a problem on the RestHandler...
I don't understand why the destroy method doesn't have a posted
arguments like the other posted method (create, update)?

best regards,
loudoweb

Andreas Söderlund

unread,
Jan 21, 2010, 5:47:18 PM1/21/10
to haxig...@googlegroups.com
On Thu, Jan 21, 2010 at 11:40 PM, loudoweb <loud...@gmail.com> wrote:
hello,
first of all, thanks for the new release ;)

No problem, glad you're using it. :) I'm about to do another release quite soon because I noticed that null values are not inserted properly when using the Database class.
 
I have a problem on the RestHandler...
I don't understand why the destroy method doesn't have a posted
arguments like the other posted method (create, update)?

I never really saw a need for posted data when deleting, 99% of the time I just use an id for that. But you're right, it should be there. The next version will include it.

Just out of curiosity, what are you using the posted data for when deleting something?


/Andreas

loudoweb

unread,
Jan 22, 2010, 3:41:44 AM1/22/10
to haXigniter
>Just out of curiosity, what are you using the posted data for when deleting
>something?

I'm using the posted data for deleting because I need to verify if
there is an authorization from the user.
I don't want any user can delete easily something. Maybe am I paranoid?

Reply all
Reply to author
Forward
0 new messages