Permalink
Browse files

add getModel() to all views

  • Loading branch information...
romaninsh committed May 8, 2011
1 parent 81fbbc4 commit 2059c2758c106b3d2f2e07bf31c0d77ea74b2b70
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/AbstractView.php
View
@@ -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;

0 comments on commit 2059c27

Please sign in to comment.