Code Igniter 4.0.3
20 June 2020
Code Igniter version 4.0.3 is now available (major release).
What's New in Code Igniter 4.0.3
4.0.3
Highlights
- The API Response Trait now only determines the final formatting (json/xml) through content negotiation when the controller's ``$format`` variable is ``null``. If it contains either ``json`` or ``xml``, then that format will always be returned.
- Pagination now can actually create next page and previous page links, instead of next/previous groups of links.
- Windows users wanting to build their own copy of the user guide locally can now use the included ``make.bat`` file.
- Locale matching in the IncomingRequest class now works to match broad groups, like ``fr`` even when the browser only supplies a more specific locale code, like ``fr-FR``.
- Added the ability to have nested language defintions.
- add ability to replace {locale} to request->getLocale() in form_open('action')
- tables generated by CLI commands can now be colored.
Bug Fixes
- Deleting through the Model on a table with string primary key now works.
- Default pagination templates fixed to use the correct locale.
- Lots of tweaks and corrections in the user guide.
- Fixed locating files in custom namespaces that were occassionally not found. Primarily affected console commands.
4.0.2
Bug Fixes
- Your requirements could not be resolved to an installable set of packages. #2613
Improvements
- Removed unused test class that was causing appstarter not to work from CLI.
- Fix all Sphinx warnings
- Sphinx_rtd_theme fixes and improvements
4.0.1
Bug Fixes
- Difficult architecture of the codeigniter4 project
- mentioned rc4 in the changelog file of V4 userguide
Improvements
- Removal of the 'rc' parameter from the installation / update
4.0.0
Bug Fixes
- CI cant display error with API Response Trait
- testOrHavingBy() requires a select
- Email->validateEmail() on wrong email address leads to TypeError
- $forge->dropColumn not allowing arrays
- CI4 set ID to NULL when I try insert a row
- "Required" rules are not being enforced at all by the model
- Debug Bar showing before the head tag
- Docs / Library Reference / Validation: missing important information on reset() method
- system/Config/BaseService.php getSharedInstance() will not return mocks with non-lowercase key
- multi-column WHERE not prefixed
- CodeIgniter\Files\File::getSize() - wrong type of result
- Move work with $_GET['page'] from Model to Pager
- ImageHandler has no reality checks
- No default HTTP protocol version is set when creating a new Response
- Filter wildcards ignore default methods
- trailing slash cause redirect to root
- Commands cannot accept many paths
Improvements
- Add an 'alpha_numeric_punct' rule to FormatRules
- Feature: Forge, Adding Foreign key for table already created
- Error In UserGuide
- Lack of test on Travis for PHP 7.4 and tests don't run on upcoming PHP versions
- Feature: model helper
- Issue with layouts renderer and sections => merge sections in one view
- Update package dependency version for kint-php/kint