Fix inconsistent data referencing in View

This commit is contained in:
Kelly Banman
2012-01-22 17:34:08 -08:00
parent 765dcc8bac
commit a3cbe24b6e

View File

@@ -358,7 +358,7 @@ class View implements ArrayAccess {
*/ */
public function __get($key) public function __get($key)
{ {
return $this[$key]; return $this->data[$key];
} }
/** /**
@@ -366,7 +366,15 @@ class View implements ArrayAccess {
*/ */
public function __set($key, $value) public function __set($key, $value)
{ {
$this[$key] = $value; $this->data[$key] = $value;
}
/**
* Magic Method for checking dynamically-set data.
*/
public function __isset($key)
{
return isset($this->data[$key]);
} }
/** /**