Template controller for Kohana framework