Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
add getModel() to all views
Browse files Browse the repository at this point in the history
  • Loading branch information
Romans Malinovskis committed May 8, 2011
1 parent 81fbbc4 commit 2059c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/AbstractView.php
Expand Up @@ -78,6 +78,9 @@ function setModel($model,$actual_fields=null){
$this->setController($c); $this->setController($c);
return $c; return $c;
} }
function getModel(){
return $this->getController()->getModel();
}
function setController($controller){ function setController($controller){
if(is_object($controller)){ if(is_object($controller)){
$this->controller=$controller; $this->controller=$controller;
Expand Down

0 comments on commit 2059c27

Please sign in to comment.