Quick links: Content - sections - sub sections
EN FR

Trace: principles 1.2 1.2.x 1.2beta1 1.3 1.4.x hall-of-fame 1.1rc1 about 1.4

This is an old revision of the document!


Jelix 1.4

This page is listing updates and enhancements added since 1.3.x version, and that will be available for the 1.4 version.

Release date: still in development

Main improvements

  • new jApp::config() method, to retrieve the configuration. $gJConfig is deprecated.
  • new jApp::coord() method, to retrieve the coordinator. $gJCoord is deprecated.
  • new autoload system. Classes to autoload can be indicated into module.xml file of your modules. the autoload system support the PSR0 specification
  • virtual templates
  • new API to support HTTP cache
  • new classes to read Atom and RSS feeds
  • new class, jPref, to set and get dynamic/functionnal configuration options. An interface is available to allow a webmaster to manage these preferences.
  • modules can provide their own response object and indicate them directly into the configuration

Migrating from Jelix 1.3.x

  • your entrypoints should be changed:
    • the coordinator should be set into the jApp object.
    • the configuration file should be intidacted to the jApp object too instead of the coordinator.
    • See a template in lib/jelix-scripts/templates/www/index.php.tpl
  • you are encouraged to replace all your $gJConfig/$gJCoord use by jApp::config() and jApp::coord().

Details of changes in 1.4a1pre

Enhancements

  • Core
    • the global variable $gJConfig is now deprecated. You should use jApp::config() instead, to retrieve the configuration.
    • the global variable $gJCoord is now deprecated. You should use jApp::coord() instead, to retrieve the coordinator.
    • New HTTP cache API on response object: cleanCacheHeaders(), setExpires(), setLifetime(), isValidCache(). @FlorianLB
    • jXmlResponse allow now to specify your own mime type. @Thomas PT
    • in the configuration, we can indicate a response class which is in a module. Syntax: {responsetype}=module:{modulename}:{classname}. And the response class should be store into a {modulename}/responses/{classname}.class.php.
  • jUrl
    • new method getRootUrl($keyword) (and a jTpl plugin) to associate some urls to keywords. @bricet #1073
  • jTpl:
    • virtual templates. You can use jTpl with simple strings (not readed from files): jTpl::fetchFromString(). @doubleface, @laurentj, #545
    • new meta instructions: meta_if, meta_else, meta_endif. @bricet
    • plugins: added support of IE8 and IE9 in meta_html
  • jAuth:
    • new hash function bcrypt() using blowfish algorithm. @FlorianLB
  • jAcl, jAclDb and jAcl2Db use the new autoload system. All jAclDb* and jAcl2Db* classes, and coord plugins acl and acl2, have been moved into their respective modules.
  • Utils:
    • new classes to retrieve and parse Atom and RSS feeds: jAtom10Reader and jRSS20Reader. Compatible with responses that generates Atom and RSS feeds. @FlorianLB #23
  • new class jPref : a system to store dynamic configuration options (not system options for the framework). An interface is available to allow a webmaster to manage these preferences. It uses jKVDb as storage backend.

Bugs fixed

en/changelog/1.4.1330699029.txt.gz · Last modified: 2012/03/02 14:37 by laurent

Recent changes RSS feed Creative Commons License