I got the following error when calling the method "compileAllTemplates" on Smarty 5.0.0
Fatal error: Uncaught Error: Class "Smarty\FilesystemIterator" not found in /var/www/vendor/smarty/smarty/src/Smarty.php:1463
It seems it's simply missing the use statement for the FilesystemIterator.
The error disappears and the method compiles templates correctly after I have placed the use statement for it at the top of the Smarty.php file just before the use RecursiveDirectoryIterator; statement.
use FilesystemIterator;
use RecursiveDirectoryIterator;
...
I got the following error when calling the method "compileAllTemplates" on Smarty 5.0.0
Fatal error: Uncaught Error: Class "Smarty\FilesystemIterator" not found in /var/www/vendor/smarty/smarty/src/Smarty.php:1463
It seems it's simply missing the use statement for the FilesystemIterator.
The error disappears and the method compiles templates correctly after I have placed the use statement for it at the top of the Smarty.php file just before the use RecursiveDirectoryIterator; statement.
use FilesystemIterator; use RecursiveDirectoryIterator; ...