Update example.php

Added an example for rendering a view