src/View.php
public function run($id)
    {
        $model = $this->getModel($id);

        return $this->controller->render($this->view, [
            $this->nameVariableModel => $model,
        ]);
    }
public function run($id)
    {
        $model = $this->getModel($id);

        return $this->controller->render($this->view, [
            $this->nameVariableModel => $model,
        ]);
    }
public function run ( $ id ) { $ model = $ this -> getModel ( $ id ) ; return $ this -> controller -> render ( $ this -> view , [ $ this -> nameVariableModel => $ model , ] ) ; }
Views existing record.
@param mixed $id ID of the model to be view
@return mixed response
Views existing record .