How to delete from database with query string?

+
0
-

I have a button/icon which, when clicks goes to a delete function.
eg:to delete the record with id 123

<a href="/blog/delete/123">icon</a>

How do I get the parameter ‘123’ in the presenter?

CZechBoY
Member | 3584
+
+1
-

Create action in presenter with parameter id.

You should create links via Nette – eg. n:href=“Blog:delete, id => 123”

Last edited by CZechBoY (2020-01-05 08:43)