SSP 中的主题根据here 的文档应该非常简单。我有一个有效的 IDP 安装 SimpleSAMLphp 1.19.7.
我设置了以下结构
/var/simplesamlphp/modules/foomodule/
└── themes
└── footheme
└── default
└── _header.twig
_header.twig 开始是 /var/simplesamlphp/templates/_header.twig 的副本
在 /var/simplesamlphp/config/config.php 的模块部分我有
'module.enable' => [
'exampleauth' => false,
'core' => true,
'saml' => true,
'foomodule' => true
],
在外观部分我们有
'theme.use' => 'foomodule:footheme',
但不管我在 /var/simplesamlphp/modules/foomodule/themes/footheme/default/_header.twig 中做了什么更改,都没有出现。
config/config.php 说“默认情况下,不缓存树枝模板。”我已经离开
//'template.cache' => '',
评论了。
检查我看到的错误日志
Template: Could not find template file [includes/header.php] at [/var/simplesamlphp/modules/foomodule/themes/footheme/default/includes/header] - now trying the base template
文档对此只字未提,但我添加了 /var/simplesamlphp/modules/foomodule/themes/footheme/default/includes/header/includes/header.php 只有一个回声。错误没有变化。
我错过了什么?