-
Good morning, after upgrade to 5.0.0 on php 8.1.6 I'm working through the migration; now I stumbled across this:
The line in question is: <?= $this->tag->form("/", 'method' => "post", 'role' => "form", 'name' => "loginForm") ?> Deleting the cache file and recreating it yields the same. Config goes like the usual in 4.1: $view->registerEngines([
'.volt' => function ($view) {
$config = $this->getConfig();
$volt = new VoltEngine($view, $this);
$options = [
'path' => $config->application->cacheDir,
'separator' => '_',
'extension' => '.cache'
];
if($config->application->enviroment == 'dev') // which is set actually, but it still creates the cache files
$options['always'] = true;
$volt->setOptions($options);
return $volt;
},
'.phtml' => PhpEngine::class
]); Did 5.0.0 change anything of these? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
What's your volt look like for that line and what did you upgrade from where it used to work? |
Beta Was this translation helpful? Give feedback.
-
Ok, I just noticed there is a new syntax for the form arguments, with |
Beta Was this translation helpful? Give feedback.
Ok, I just noticed there is a new syntax for the form arguments, with
[]
enclosing the values and a action key; wasn't on the upgrading page, but I found it on the 5.0.0 Volt docs.