add index for twig file php usage in render* methods