CodeigniterEen solide basis

Codeigniter versie 3.2.0 dev

Change Log

 

Version 3.2.0

Release Date: Not Released

 

  • General Changes
    • Officially dropped any kind of support for anything under PHP 5.4.8.
    • Updated Welcome view and HTML error templates with new styling.
    • Updated configurable directory paths to handle missing trailing DIRECTORY_SEPARATOR automatically.
    • Added support for HTTP status codes 103, 207, 308, 421 and 451 to common function set_status_header().
  • Core
    • Removed $config['rewrite_short_tags'] (irrelevant on PHP 5.4+).
    • Removed previously deprecated $config['global_xss_filtering'].
    • Removed previously deprecated Routing Class methods fetch_directory(), fetch_class() and fetch_method() (use the respective class properties instead).
    • Removed previously deprecated Config Library method system_url() (encourages insecure practices).
    • Changed URI Library to ignore the $config['url_suffix'], $config['permitted_uri_chars'] configuration settings for CLI requests.
    • Changed Loader method model() to always check if the loaded class extends CI_Model.
    • Changed Output Library method _display() default parameter value to NULL instead of empty string.
    • Input Library changes include:
      • Removed previously deprecated $config['allow_get_array'].
      • Removed previously deprecated $config['standardize_newlines'].
      • Removed previously deprecated method is_cli_request() (use is_cli() instead).
      • Changed the set_cookie() method’s default expiry time to 0 (expires when browser is closed).
      • Changed the set_cookie() method to delete the cookie if a negative expiry time is passed to it.
      • Allowed usage of nested array keys in get_post(), post_get() methods.
  • Libraries
    • Removed previously deprecated Cart Library.
    • Removed previously deprecated Javascript Library (it was always experimental in the first place).
    • Added UNIX socket connection support to Session Library ‘redis’ driver.
    • Updated ZIP Library method read_dir() to include hidden (dot-prefixed) files.
    • Cache Library changes include:
      • Added ‘apcu’ driver.
      • Added UNIX socket connection support to the ‘memcached’ driver.
      • Added ‘database’ configuration option to the ‘redis’ driver, allowing to auto-select another database.
      • Added method get_loaded_driver() to return the currently used driver.
      • Changed the ‘memcached’ driver to ignore configurations that don’t specify a hostname.
      • Removed the socket_type configuration setting from the ‘redis’ driver.
      • Changed data serialization logic in ‘redis’ driver for better performance.
    • Form Validation Library changes include:
      • Removed previously deprecated method prep_for_form() / rule prep_for_form.
      • Changed method set_rules() to throw a BadMethodCallException when its first parameter is not an array and the $rules one is unused.
      • Added rule valid_mac, which replicates PHP’s native filter_var() with FILTER_VALIDATE_MAC.
      • Added ability to validate entire arrays at once, if is_array is within the list of rules.
      • Added ability to fetch processed data via a second parameter to run().
    • HTML Table Library changes include:
      • Changed method clear() to also reset captions.
    • Email Library changes include:
      • Changed the default value of the validate option to TRUE.
      • Changed the send() method to always return TRUE when sending multiple batches of emails.
    • Image Manipulation Library changes include:
      • Added option to change the output filename via the new_name option when rendering images with dynamic_output.
      • Updated to serve multibyte filenames when rendering images with dynamic_output, if possible.
      • Added WebP image support.
  • Database changes include:
    • Removed previously deprecated ‘sqlite’ driver (used for SQLite version 2; no longer shipped with PHP 5.4+).
    • Removed method db_set_charset() and the ability to change a connection character set at runtime.
    • Changed method initialize() to return void and instead throw a RuntimeException in case of failure.
    • Changed method db_connect() to always set the connection character set (if supported by the driver) and to fail if it can’t.
    • Database Forge:
      • Added support for declaring date/time type fields default values as CURRENT_TIMESTAMP and similar.
    • Query Builder:
      • Added methods having_in(), or_having_in(), not_having_in(), or_not_having_in().
      • Updated methods where_in(), or_where_in(), not_where_in(), or_not_where_in() to reject non-array inputs for the second parameter.
      • Updated method join() to allow accepting NATURAL clauses in its third parameter.
      • Updated logic to allow dots in alias names.
  • Helpers
    • Removed previously deprecated Email Helper (had only two functions, aliases for PHP’s native filter_var() and mail()).
    • Removed previously deprecated Smiley Helper.
    • Removed previously deprecated Date Helper function standard_date() (use PHP’s native date() instead).
    • Removed previously deprecated Security Helper function do_hash() (use PHP’s native hash() instead).
    • Removed previously deprecated File Helper function read_file() (use PHP’s native file_get_contents() instead).
    • Added new function ordinal_format() to Inflector Helper.
    • Download Helper changes include:
    • String Helper changes include:
      • Removed previously deprecated function trim_slashes() (use PHP’s native trim() with '/' instead).
      • Removed previously deprecated function repeater() (use PHP’s native str_repeat() instead).
    • HTML Helper changes include:
      • Removed previously deprecated function br() (use PHP’s native str_repeat() with '<br />' instead).
      • Removed previously deprecated function nbs() (use PHP’s native str_repeat() with '&nbsp;' instead).
      • Updated function meta() with support for “charset” and “property” properties.
      • Changed function doctype() default document type to HTML 5.
    • Form Helper changes include:
      • Removed previously deprecated function form_prep() (use html_escape() instead).
      • Removed the second (out of three) parameter from the form_upload() function (it was never used).
    • CAPTCHA Helper changes include:
      • Added ‘img_alt’ option with a default value of ‘captcha’.
      • Added ability to generate data:image/png;base64 URIs instead of writing image files to disk.
      • Updated to always create PNG images instead of JPEG.