php - Symfony2 Fatal Error every time I change a twig file -


every time change view file of type .twig error:

fatal error: call member function getcontent() on non-object in /pathto/myappbundle/vendor/bundles/symfony/bundle/asseticbundle/factory/resource/fileresource.php on line 54

i can resolve error doing:

php app/console cache:clear --env=prod; php app/console cache:clear --env=dev 

but because of have clear cache every time change something, in dev.

if command:

php app/console router:debug 

it gives same error.

i found online saying had same error , solution 1 of html.twig files saved html.twig.twig. looked through twig files , none saved that.

has ever experienced or solved problem, or has suggestions can solve this? there no more specific trace on happening in code.


Comments