public function data()
	{
		$data = array_merge($this->data, static::$shared);

		// All nested views and responses are evaluated before the main view.
		// This allows the assets used by nested views to be added to the
		// asset container before the main view is evaluated.
		foreach ($data as $key => $value) 
		{
			if ($value instanceof View or $value instanceof Response)
			{
				$data[$key] = $value->render();
			}
		}

		return $data;
	}
public function data()
	{
		$data = array_merge($this->data, static::$shared);

		// All nested views and responses are evaluated before the main view.
		// This allows the assets used by nested views to be added to the
		// asset container before the main view is evaluated.
		foreach ($data as $key => $value) 
		{
			if ($value instanceof View or $value instanceof Response)
			{
				$data[$key] = $value->render();
			}
		}

		return $data;
	}
public function data ( ) { $ data = array_merge ( $ this -> data , static :: $ shared ) ; // All nested views and responses are evaluated before the main view. // This allows the assets used by nested views to be added to the // asset container before the main view is evaluated. foreach ( $ data as $ key => $ value ) { if ( $ value instanceof View or $ value instanceof Response ) { $ data [ $ key ] = $ value -> render ( ) ; } } return $ data ; }
Get the array of view data for the view instance.

The shared view data will be combined with the view data.

@return array
Get the array of view data for the view instance .