Trace:
Differences ¶
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
en:tutorial:application-creation [2006/09/19 16:22] – created doubleface | en:tutorial:application-creation [2006/09/19 16:36] – doubleface | ||
---|---|---|---|
Line 6: | Line 6: | ||
We suppose that you installed Jelix as indicated on the [[en: | We suppose that you installed Jelix as indicated on the [[en: | ||
+ | |||
+ | ===== Discovering Jelix-Scripts ===== | ||
+ | |||
+ | Jelix is provided with a script, jelix.php, which makes creation and modification of the different files of an application based on Jelix easy. It is necessary to invoke it with the command line version of PHP and to give as parameter a Jelix command name, with possible parameters and options. | ||
+ | |||
+ | <code bash> | ||
+ | php jelix.php [--application_name] command_name [options] [parameters] | ||
+ | </ | ||
+ | |||
+ | For this, open a console and go to the lib/ | ||
+ | |||
+ | under linux : cd lib/ | ||
+ | under windows : cd lib\jelix-scripts\ | ||
+ | |||
+ | To get help on all the available commands, type : | ||
+ | |||
+ | <code bash> | ||
+ | php jelix.php help | ||
+ | </ | ||
+ | |||
+ | You will have noticed that you must indicate to jelix.php (except for the help command), the name of the application on which the command apply. It is possible to avoid it. For this, you have to put the name of the application in an environment variable : JELIX_APP_NAME. For our example, do this : | ||
+ | |||
+ | <code bash> | ||
+ | export JELIX_APP_NAME=" | ||
+ | set JELIX_APP_NAME=actu.org | ||
+ | </ | ||