add method to ViewInterface

See:
https://github.com/codeguy/Slim/issues/942