diff --git a/system/view.php b/system/view.php index 7844ed44..48c3229b 100644 --- a/system/view.php +++ b/system/view.php @@ -83,6 +83,18 @@ public function bind($key, $value) return $this; } + /** + * Merge an array into the view data. + * + * @param array $data + * @return View + */ + public function with($data) + { + $this->data = array_merge($this->data, $data); + return $this; + } + /** * Get the parsed content of the view. *