You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMO, it does not make sense to add subfolders automatically moist of the time. Whe using subfolders to organize templates you will generally want to have the subfolder appearing in the template name. Otherwise, you would still have to use unique filenames accross all you folders.
So such code has no chance to be added in Twig_Loader_Filesystem::addPath IMO. It would be totally unexpected
Hi,
i use Twig as my template engine (without symfony)
I have a lot a of subdirectory in my templates directory, and i'm tired of adding manually all these subdirectory in the new Twig_Loader_Filesystem()
maybe there is an other way to do this ?
Anyway, i dont find anything to solve my problem so i propose this solution :
public function addPath($path, $namespace = self::MAIN_NAMESPACE)
{
// invalidate the cache
$this->cache = array();
kind regards
The text was updated successfully, but these errors were encountered: