v3.10.1
What's Changed
- Fix/bug with multiple view renders by @fadrian06 in #581
Old behaviour
Flight::render('input', ['required'=>true);
Flight::render('component'); // required is still true
New behaviour (activable)
Flight::view()->preserveVars = false;
Flight::render('input', ['required'=>true);
Flight::render('component'); // PHP Warning: undefined variable required
// You can provide default values
Flight::view()->set('globalVariable', 'value');
// or set default in view components
// input.php
$required ??= false;
Full Changelog: v3.10.0...v3.10.1