Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added __set for setting view value

  • Loading branch information...
commit 3a08db22adbd28eae2229acabde02b12ab21f2af 1 parent 7d4b824
@drpheltright authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 classes/prophet/controller.php
View
11 classes/prophet/controller.php
@@ -56,6 +56,17 @@ public function __get($name)
return $this->_view;
}
}
+
+ /**
+ * Magic set method
+ */
+ public function __set($name, $value)
+ {
+ if ($name === 'view')
+ {
+ $this->_view = $value;
+ }
+ }
/**
* The after method turns the view into a response

0 comments on commit 3a08db2

Please sign in to comment.
Something went wrong with that request. Please try again.