Ticket #609 (closed enhancement: fixed)

Opened 6 months ago

Last modified 2 weeks ago

Make application.init.php the single entry point for framework path dependancy

Reported by: maurice Assigned to:
Priority: low Milestone: jelix 1.1
Component: jelix-scripts Version: trunk
Severity: minor Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

Description

Objective : make easier the changes of jelix lib framework for jelix application.

Every application entry like "myapp/www/index/php" have the following lines :

        require_once ('../../lib/jelix/init.php');
        require_once ('../application.init.php');
        require_once (JELIX_LIB_CORE_PATH.'request/jClassicRequest.class.php');
        $config_file = 'index/config.ini.php';
        $jelix = new jCoordinator($config_file);
        $jelix->process(new jClassicRequest());

I suggest to move the framework path dependancy to the main application.init.php file which could start with :

        require_once ('../lib/jelix/init.php');
        # if ticket [http://developer.jelix.org/ticket/608] is accepted
        # require_once ('../lib_jelix1.1-snap-20070529/jelix/init.php');
        define ('JELIX_APP_PATH', dirname (__FILE__).DIRECTORY_SEPARATOR);
        ...

As a positive side effect, the script "jelix.php" will be able to use the "application.init.php" from the courant directory (if it exists) as a Makefile to guess all appli configuration (obsédé!)... But it will be another ticket or alternative jelix.php script to come later...

Change History

06/03/08 11:40:47 changed by laurentj

  • owner changed.
  • priority changed from normal to low.
  • component changed from jelix to jelix-scripts.
  • severity changed from normal to minor.

06/22/08 12:39:31 changed by maurice

  • cc deleted.

07/16/08 00:23:14 changed by laurentj

  • milestone set to Jelix 1.1 beta 2.

09/11/08 00:23:01 changed by laurentj

  • milestone deleted.

11/09/08 02:12:20 changed by laurentj

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to jelix 1.1.

in jelix-scripts, the include of the init.php file has been moved from entrypoint templates to the template of application.init.php. svn 1159.

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