Skip to content

v3.10.1

Compare
Choose a tag to compare
@fadrian06 fadrian06 released this 03 Jun 15:31
· 30 commits to master since this release
39ac87c

What's Changed

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