The popular PHP framework CodeIgniter has been updated. The changes are pretty impressive.
Libraries
- New class for form validation. Simplified the process of initializing fields, supports arrays, the rules can be saved in configs. Added helpers to fill fields in mappings. The old validation class will remain included for the time being, but it is not recommended to use it.
- Sessions CodeIgniter learned how to save data to the database without transferring it as a cookie.
- Libraries can now be stored in subfolders.
- Libraries when loading, you can specify your name.
- The profiler added information about the current controller and method, as well as support for multiple connections to the database.
- Improved auto typography, moved from helper to class.
- Improved xss_clean () speed and accuracy, including false positives when processing files.
- Improved Parser class. Now you can call parse () several times. With each output, the result is accumulated.
- Added the max_filename option to the Upload class to limit the size of the file name.
- The function set_status_header () has been added to the Output class.
- Changed class Pagination. Now only the “first” link is shown in the case when the page is one or the first is selected.
- Added support for mb_strlen in the validation class to correctly calculate the string length in UTF8.
Database
- Active Record now understands the full names of tables like hostname.database.table.column. Also improved handling of aliases and screening / prefixing.
- Caching for “update” and “delete” in Active Record.
- Delete non-printable characters in escape_str ().
- You can specify the port when connecting to MySQL, MySQLi and MS SQL.
- Added a variable that stores the name of the driver, see bug # 4436.
Helpers
- Added helpers to fill out the form after validation errors.
- Current_url () and uri_segments () are added to the URL.
- email addresses with + are handled by auto_link () (URL).
- Added meta () function to HTML.
- Improved precision of Number helper.
- Helpers no longer add "\ n".
- Stricter validation rules in human_to_unix () Date helper.
- Updated list of time zones in the Date helper.
- The url_title () helper URL allows a dash, underscores, regardless of the $ separator set, as well as capital letters.
- Attribute support in anchor_popup () URL helper.
')
Other changes
- The coding standard is included in the documentation.
- xss_clean () clears outdated HTML tags.
- Mimes.php and user_agents.php replenished.
- Check the exclusive access rights when writing to the cache.
- Cleaning left cookies that may interfere with the operation of CI.
- The profiler block has id = "codeigniter_profiler" added.
Full list of changes, including bug fixesHow to updateA new version