Remove View::$last.
This commit is contained in:
@@ -16,13 +16,6 @@ class View {
|
|||||||
*/
|
*/
|
||||||
public $data = array();
|
public $data = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* The name of last rendered view.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public static $last;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new view instance.
|
* Create a new view instance.
|
||||||
*
|
*
|
||||||
@@ -55,8 +48,6 @@ class View {
|
|||||||
*/
|
*/
|
||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
static::$last = $this->view;
|
|
||||||
|
|
||||||
// Get the evaluated content of all of the sub-views.
|
// Get the evaluated content of all of the sub-views.
|
||||||
foreach ($this->data as &$data)
|
foreach ($this->data as &$data)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user