Your commit message
This commit is contained in:
parent
1ff80f75e0
commit
3416f8a575
|
@ -6,25 +6,10 @@ namespace MyProject\Controllers;
|
||||||
|
|
||||||
use MyProject\Models\ExampleModel;
|
use MyProject\Models\ExampleModel;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class ExampleController
|
|
||||||
*
|
|
||||||
* Handles the requests related to examples.
|
|
||||||
*/
|
|
||||||
class ExampleController
|
class ExampleController
|
||||||
{
|
{
|
||||||
private ExampleModel $model;
|
private ExampleModel $model;
|
||||||
|
|
||||||
/**
|
|
||||||
* Display a specific item view.
|
|
||||||
*
|
|
||||||
* Retrieves an item by its ID and renders the item view. If the item is not found,
|
|
||||||
* a not found response is generated.
|
|
||||||
*
|
|
||||||
* @param integer $id The ID of the item to retrieve.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function show(int $id): void
|
public function show(int $id): void
|
||||||
{
|
{
|
||||||
$item = $this->model->find($id);
|
$item = $this->model->find($id);
|
||||||
|
|
Loading…
Reference in New Issue