Your commit message

This commit is contained in:
RameshT 2024-08-13 15:16:26 +05:30
parent 1ff80f75e0
commit 3416f8a575
1 changed files with 0 additions and 15 deletions

View File

@ -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);