fix LogicException: You must set a loader first.
Twig_Error_Syntax: The function "path" does not exist