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
Merge pull request #19 from Jinzuu/patch-2

Update view.rst