Hello guys,
i got an news article system where users can click on "read more" The url is: localhost/articles/{id} where {id} is, is the ID from the article which is outputted from the database.
Now what i want to do is, whenever the user clicks on read more, i need to get the database info for the article name, title , text etc depending on the URL id param.
Anyone can help me?
Thank you.
This is my router:
$router->add( '/articles/index/{id}', [ 'controller' => 'Articles', 'action' => 'index', ] );