An extensible micro-framework for PHP
Flight::render('input', ['required'=>true);
Flight::render('component'); // required is still true
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: https://github.com/flightphp/core/compare/v3.10.0...v3.10.1
Flight::jsonHalt()
by @n0nag0n in https://github.com/flightphp/core/pull/594
Full Changelog: https://github.com/flightphp/core/compare/v3.9.0...v3.10.0
Full Changelog: https://github.com/flightphp/core/compare/v3.8.1...v3.9.0
Full Changelog: https://github.com/flightphp/core/compare/v3.8.0...v3.8.1
Full Changelog: https://github.com/flightphp/core/compare/v3.7.2...v3.8.0
Full Changelog: https://github.com/flightphp/core/compare/v3.7.1...v3.7.2
Full Changelog: https://github.com/flightphp/core/compare/v3.7.0...v3.7.1
Dispatcher
statically anymore.Full Changelog: https://github.com/flightphp/core/compare/v3.6.2...v3.7.0
Full Changelog: https://github.com/flightphp/core/compare/v3.6.1...v3.6.2
Full Changelog: https://github.com/flightphp/core/compare/v3.6.0...v3.6.1