Quick links: Content - sections - sub sections
EN FR

Trace: 1.5.x 1.2 1.0beta2.1 1.2.x simple-jforms-example features 1.1rc1 1.2beta1

This is an old revision of the document!


Jelix 1.2beta1

Still in development. This page is listing updates and enhancements added since 1.1.x version, and that will be available for the future 1.2beta1 version.

Changelog updated until : 64db81e2a6cd

Main improvements

  • new module management
  • new install and upgrade system
  • Improved the performance and the flexibility of jDb profiles
  • new jCache class to store all you want in a cache, and where you want (memcache, files..)
  • updated TCPDF to 4.5.015
  • updated Wikirenderer to 3.1.1

Migrating from Jelix 1.1.x

Modules management has changed

In the configuration file, unusedModules, trustedModules and checkTrustedModules are not used anymore, you should remove them. You should create a new “modules” section, and create an option for each module your application use. The option is the module name plus “.access”. The value should be:

  • 0: if the module is not used (default value if the option is not created)
  • 1: the module is used (you use its dao, forms, business classes etc from an other module), but is not publicly available (it is not accessible from the web).
  • 2: the module is used and is accessible from the web

example:

[modules]
testapp.access = 2
junittests.access = 2
jWSDL.access = 2
jacldb.access = 0
jacl2db.access = 1
jauthdb.access = 1
jauth.access = 2
Install your modules

You should also to “install” your module. A new file “installer.ini.php” should be created into your var/config/ directory. It contains, for each entrypoints, the list of installed modules, and for each of them, the installed version.

  • verify that all your module have a module.xml filed correctly, with a version number, and your project.xml is ok too.
  • create a file var/config/installer.ini.php. Example:
[index]
jelix.installed=1
jelix.version=1.2b1
jacl2db.installed=1
jacl2db.version=1.2b1
jauth.installed=1
jauth.version=1.2b1
jauthdb.installed=1
jauthdb.version=1.2b1
junittests.installed=1
junittests.version=1.2b1
jWSDL.installed=1
jWSDL.version=1.2b1
testapp.installed=1
testapp.version=1.2b1

Indicate all your own modules you use, including those provided by Jelix and you use, by indicating the version of your modules.

Remove all files into your temp/myapp/ directory, and launch your application. You shouldn't have problems.

You can then create a new a installation script into yourapp/install/ like in testapp. So you can use it later (in a command line) to install or update easily your application.

Other migration steps
  • The support of old action selectors and old class naming used as of Jelix 1.0 beta, have been removed. You should change your selector and class name if you migrate from a very old version of Jelix < 1.0.
  • If you use directly jelixuser.dao.xml, you should change your selector: it has been moved from the jauth module to jauthdb module.
  • if you made your own jDb driver with a plugin for jDaoGenerator, you should change some methods calls, since some of them have been renamed. A refactoring has been made and you can redefine more methods.

Details of changes

Enhancements, new features

  • New modules management
    • ticket #821: Improve the policy management module. see above.
  • ticket #31/#263: new installation/update system
    • a module should provide a class which should inherit from jInstallerModule. For upgrades, a module can provides a file for each version which needs to do things to upgrade to this version.
    • ticket #965: moved jInstallCheck to installer/ and unified message reporters between jInstallCheck and jInstaller. The same interface is used now.
  • jDb and jDao
    • Improved the performance and the flexibility of jDb profiles. Now a profile name can be an alias or a real name. If a profile doesn't exist, the default profile is used. So, if an external module needs a specific profile name, we don't have to setup a profile. We just have to set an alias.
    • ticket #871: jDbTools provides a way to translate any field type.
      • Dao files can now refers to any database field type, although it doesn't support blob fields yet
      • support of a new attribute autoincrement on the property element in jdao
      • better support of long numerical values
      • new properties on jDbField: unifiedType, unsigned, minLength, maxLength minValue maxValue
      • new methods on jDbTools: getTypeInfo, unifiedToPhpType, stringToPhpValue, escapeValue, getBooleanValue, encloseName
      • no more static properties on jDaoCompiler
      • Api of jDaoParser and jDaoGenerator has changed
      • new properties on jDaoProperty: unifiedType, autoIncrement, and the signature of the constructor has changed
      • removed the deprecated method jDb::getProfil and you should use jDb::getProfile instead.
  • jForms
    • ticket #887: jFormsBase::prepareObjectFromControls supports the new unifiedType
  • Responses
    • ticket #810: we can now change the title of the html response with the jtpl meta plugin
    • ticket #864: improvements on jResponseLatexPdf
      • added a date property
      • added a property outputFileName
      • we can choice the title
      • changes on the command line call
    • Added a property $temporary on redirect and redirecturl responses
  • Utils
    • ticket #540: new jCache class.
    • ticket #796: added a new output type FULL_LANG_DATE in jDateTime.
    • jMailer: added a new type of mailer, file, to store mails into files instead of sending them, to test an application without having connectivity to internet
    • Added a new method isModified on jIniFileModifier and jIniMultiFilesModifier
    • methods of jCrypt become public.
  • core
    • ticket #854: Optimisation of the loading of coord plugins.
    • ticket #903: jUrl, significant engine: multiple modules without action for a unique entrypoint.
  • jTpl
    • added the include plugin for jtpl
    • ticket #808 : add break jTpl plugin.
    • ticket #943: cycle_init accepts now arrays as argument
    • ticket #760: new tpl plugin, modifier truncatehtml.
  • jEvents : more flexibility by calling the old method performEvent on listeners
  • junittest module: new method jUnitTestsDb::assertTableContainsRecordsByKeys
  • Diff lib: table formater generates now better html content and with line numbers. Added also a default css for diff formating.
  • ticket #947: master_admin module: add an $order property on masterAdminDashboardWidget
  • jelix-scripts
    • ticket #870: new script to create a business class from a dao
    • ticket #848 : createform and createdaocrud create now files for locales

Bug fixes

  • These release contains all bug fixed in 1.1.x series.

Other versions

en/changelog/1.2beta1.1252772872.txt.gz · Last modified: 2009/09/12 16:27 by laurent

Recent changes RSS feed Creative Commons License