is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

#609 closed enhancement (fixed)

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

Reported by: maurice Owned by:
Priority: low Milestone: jelix 1.1
Component: jelix-scripts Version: trunk
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


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 [] 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 (5)

comment:1 Changed 13 years ago by laurentj

  • Component changed from jelix to jelix-scripts
  • Priority changed from normal to low
  • Severity changed from normal to minor

comment:2 Changed 13 years ago by maurice

  • Cc Maurice.Diamantini@… removed

comment:3 Changed 13 years ago by laurentj

  • Milestone set to Jelix 1.1 beta 2

comment:4 Changed 13 years ago by laurentj

  • Milestone Jelix 1.1 beta 2 deleted

comment:5 Changed 13 years ago by laurentj

  • Milestone set to jelix 1.1
  • Resolution set to fixed
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.