Since php 5.3 does not allow the use of "$this" in closures, I added $slimView = $this in order to make it available with "function() use ($slimView)".