Skip to content

Delete a book using URL #161

Open
Open
@alex-alicunde

Description

@alex-alicunde

I'm very new to Google's DataStore.

I want to make a list of my books with a button to delete the books I want.

But for this, I need to create a route to eliminate them:

$books= new GDS\Store('Book');	
foreach($books->fetchAll() as $book)
	{
		?>
			<h2><?php echo $book->title; ?> <a href="/delete/<?php echo $book->key; ?>">Delete</a></h2>
		<?php
	}

How do I create a route with the unique ID of the book ?. Is there any way to make automatic IDs ?.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions