Commit a77b6a97 authored by Taylor Otwell's avatar Taylor Otwell

changed loading of view to fix bug when binding content view data.

parent c92bdea0
...@@ -16,13 +16,6 @@ class View { ...@@ -16,13 +16,6 @@ class View {
*/ */
public $data = array(); public $data = array();
/**
* The content of the view.
*
* @var string
*/
public $content = '';
/** /**
* The name of last rendered view. * The name of last rendered view.
* *
...@@ -41,7 +34,6 @@ class View { ...@@ -41,7 +34,6 @@ class View {
{ {
$this->view = $view; $this->view = $view;
$this->data = $data; $this->data = $data;
$this->content = $this->load($view);
} }
/** /**
...@@ -115,7 +107,7 @@ class View { ...@@ -115,7 +107,7 @@ class View {
ob_start(); ob_start();
echo eval('?>'.$this->content); echo eval('?>'.$this->load($this->view));
return ob_get_clean(); return ob_get_clean();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment