Ticket #509 (new enhancement)

Opened 5 months ago

Ability to change jelix context on the fly

Reported by: laurentj Assigned to:
Priority: normal Milestone:
Component: jelix Version: 1.0.2
Severity: blocker Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

Description

When creating unit tests, or if we want to migrate jelix-scripts to a real jelix application, it should be interesting to have an api which allow us to change the context of Jelix :

  • by loading an other configuration file
  • by changing all values of JELIX_* constants (so we need to replace these constants by static property in a Jelix class for example)
  • by changing values of all $gJ* global variables.
  • old values are saved in a container, somewhere, so we could switch between several application.

We need to study consequence of this changes, in session for example.

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed