src/Response/View.php
public function prepare ()
		{
			if (is_array($this->viewData)) {
				foreach ($this->viewData as $_token => $_value) {
					if (is_object($_value) && is_subclass_of($_value, __CLASS__)) {
						$$_token = $_value->prepare();
					} else {
						$$_token = $_value;
					}
				}
			}

			if (is_file($this->filePath)) {
				ob_start();
				require($this->filePath);

				return ob_get_clean();

			} else {
				throw new ViewFileNotFoundException('No such view: ' . $this->filePath);
			}
		}
public function prepare ()
		{
			if (is_array($this->viewData)) {
				foreach ($this->viewData as $_token => $_value) {
					if (is_object($_value) && is_subclass_of($_value, __CLASS__)) {
						$$_token = $_value->prepare();
					} else {
						$$_token = $_value;
					}
				}
			}

			if (is_file($this->filePath)) {
				ob_start();
				require($this->filePath);

				return ob_get_clean();

			} else {
				throw new ViewFileNotFoundException('No such view: ' . $this->filePath);
			}
		}
public function prepare ( ) { if ( is_array ( $ this -> viewData ) ) { foreach ( $ this -> viewData as $ _token => $ _value ) { if ( is_object ( $ _value ) && is_subclass_of ( $ _value , __CLASS__ ) ) { $ $ _token = $ _value -> prepare ( ) ; } else { $ $ _token = $ _value ; } } } if ( is_file ( $ this -> filePath ) ) { ob_start ( ) ; require ( $ this -> filePath ) ; return ob_get_clean ( ) ; } else { throw new ViewFileNotFoundException ( 'No such view: ' . $ this -> filePath ) ; } }
Returns string of template pointed to by file, with data passed to it.

@internal

@return string
Returns string of template pointed to by file with data passed to it .