Changed Kohana from version 3.3 to 3.0 to make it compatible with the twig module used. Installed twig module and changed controllers and views to use twig.