From 2059c2758c106b3d2f2e07bf31c0d77ea74b2b70 Mon Sep 17 00:00:00 2001 From: Romans Malinovskis Date: Sun, 8 May 2011 05:00:59 +0100 Subject: [PATCH] add getModel() to all views --- lib/AbstractView.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/AbstractView.php b/lib/AbstractView.php index 9cafdc927..cd5d994a1 100644 --- a/lib/AbstractView.php +++ b/lib/AbstractView.php @@ -78,6 +78,9 @@ function setModel($model,$actual_fields=null){ $this->setController($c); return $c; } + function getModel(){ + return $this->getController()->getModel(); + } function setController($controller){ if(is_object($controller)){ $this->controller=$controller;