diff --git a/main/Flow/ModelAndView.class.php b/main/Flow/ModelAndView.class.php index 615eaa78bb..0f35f9ad55 100644 --- a/main/Flow/ModelAndView.class.php +++ b/main/Flow/ModelAndView.class.php @@ -49,6 +49,16 @@ public function setModel(Model $model) return $this; } + /** + * @return ModelAndView + **/ + public function setInModel($name, $value) + { + $this->model->set($name, $value); + + return $this; + } + public function getView() { return $this->view;