Welcome Guest, Not a member yet? Register   Sign In
How to handle direct link to controller/function/param?
#1

[eluser]Rob B.[/eluser]
I have a simple controller function which deletes a DB entry (it uses a model function to do so). I have a link to this in one of my views (http://www.example.com/item/delete/3) and I'm using jQuery to display a confirm dialog to make sure the user really wants to delete it. All fine. However if you just enter that URL in your browser the item is deleted without warning.

Is there a way to handle this either in the way I code the controller function or in the model?


Messages In This Thread
How to handle direct link to controller/function/param? - by El Forum - 04-06-2010, 12:15 PM
How to handle direct link to controller/function/param? - by El Forum - 04-06-2010, 02:44 PM
How to handle direct link to controller/function/param? - by El Forum - 04-06-2010, 03:19 PM
How to handle direct link to controller/function/param? - by El Forum - 04-07-2010, 02:56 AM
How to handle direct link to controller/function/param? - by El Forum - 04-07-2010, 05:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB