Template::render( array $context )

Summary

Render the template to a string


Parameters

$context

(array) (Required) Variables that will be passed to the template


Return

(string)


Source

File: src/BigCommerce/Templates/Template.php

	public function render( array $context ) {
		extract( $context );
		ob_start();
		include $this->path;
		return ob_get_clean();
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.