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
{{ message }}
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
Can you add support for setting multiple templares dirs? Twig already support it, why don't add it to this lib?
Simply edit in Slim\Views\Twig:
/**
* DEPRECATION WARNING! This method will be removed in the next major point release
*
* Get a list of template directories
*
* Returns an array of templates defined by self::$twigTemplateDirs, falls
* back to Slim\View's built-in getTemplatesDirectory method.
*
* @return array
**/
private function getTemplateDirs()
{
if (empty($this->twigTemplateDirs)) {
return $this->getTemplatesDirectory();
}
return $this->twigTemplateDirs;
}
/**
* Sets an array of paths where to look for templates.
* @param string|array $directory
*/
public function setTemplatesDirectory($directory)
{
$this->templatesDirectory = $directory;
}