Class “Twig_Cache_Null” not found error

Exceptions are made by hands , some times they are not clear at all.

Today i faced one of this “Twig_Cache_Null” that was meanless.

After Several inspections i found solution:

Empty and readable cache folder is not exists. You need to create at “config” described:

  1. new Twig_Environment($loader, array(
  2. ‘cache’ => ‘cache/twig’,
  3. ‘debug’ => …,
  4. )

Happy coding.

Leave a Reply

Your email address will not be published.