mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
changed loading of view to fix bug when binding content view data.
This commit is contained in:
parent
c92bdea091
commit
a77b6a9737
@ -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 @@ class View {
|
||||
{
|
||||
$this->view = $view;
|
||||
$this->data = $data;
|
||||
$this->content = $this->load($view);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -115,7 +107,7 @@ class View {
|
||||
|
||||
ob_start();
|
||||
|
||||
echo eval('?>'.$this->content);
|
||||
echo eval('?>'.$this->load($this->view));
|
||||
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user