Update view.rst

for me, it only works when using the $this->template.... code.
The code from the original documentation only shows an empty page