Trace:
Differences ¶
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:tutorials:main:creating-application [2007/09/16 06:44] – laurent | en:tutorials:main:creating-application [2012/04/15 08:30] (current) – laurent | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Creating | + | We're going to create | 
| - | We're going to create an application from scratch. Every Jelix application has a name : the name of its directory. We will call our application " | + | We suppose that you installed the Developer Edition of Jelix as indicated on the [[http:// | 
| - | + | ||
| - | We suppose that you installed the Developer Edition of Jelix as indicated on the [[en:manual:installation|installation]] page, and that you use the default configuration, | + | |
| Line 30: | Line 28: | ||
| <code bash> | <code bash> | ||
| - | export JELIX_APP_NAME=" | + | export JELIX_APP_NAME=" | 
| - | set JELIX_APP_NAME=actu.org # under windows | + | set JELIX_APP_NAME=news.org # under windows | 
| </ | </ | ||
| + | |||
| + | Notice that you can execute the script from any directories. For example, you can type: | ||
| + | |||
| + | <code bash> | ||
| + | php jelix/ | ||
| + | php jelix\path\lib\jelix-scripts\jelix.php --news.org createapp | ||
| + | </ | ||
| Line 44: | Line 49: | ||
| </ | </ | ||
| - | You then get a actu.org/ directory, at the same level as the lib/ directory. Its content is : | + | You then get a news.org/ directory, at the same level as the lib/ directory. Its content is : | 
| - |  | + |  | 
|  |  | ||
|  |  | ||
| Line 55: | Line 60: | ||
|  |  | ||
| - | Check that the temp/ | + | Check that the temp/ | 
| ===== Creation of a module ===== | ===== Creation of a module ===== | ||
| - | Now that we have a skeleton of application, | + | Now we have a skeleton of application, | 
| - | The actions are grouped | + | The actions are grouped | 
| <code bash> | <code bash> | ||
| Line 70: | Line 75: | ||
| By typing this command, Jelix has created for you a module named news with all its tree structure and some mandatory files : | By typing this command, Jelix has created for you a module named news with all its tree structure and some mandatory files : | ||
| - | actu.org/ | + | news.org/ | 
| news/ the directory of the module | news/ the directory of the module | ||
| module.xml | module.xml | ||
| Line 85: | Line 90: | ||
| We are now ready to define the actions. | We are now ready to define the actions. | ||
| - | ---- | ||
| - | * Next : [[en: | ||
| - | * [[en: | ||




