From a77b6a9737dac033862802016c597f564dfba189 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 11 Jun 2011 20:50:19 -0500 Subject: [PATCH] changed loading of view to fix bug when binding content view data. --- system/view.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/system/view.php b/system/view.php index d4d6de5e..7844ed44 100644 --- a/system/view.php +++ b/system/view.php @@ -16,13 +16,6 @@ class View { */ public $data = array(); - /** - * The content of the view. - * - * @var string - */ - public $content = ''; - /** * The name of last rendered view. * @@ -41,7 +34,6 @@ public function __construct($view, $data = array()) { $this->view = $view; $this->data = $data; - $this->content = $this->load($view); } /** @@ -115,7 +107,7 @@ public function get() ob_start(); - echo eval('?>'.$this->content); + echo eval('?>'.$this->load($this->view)); return ob_get_clean(); }