Trace:
Differences ¶
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:minitutorial [2006/09/14 15:54] – doubleface | en:minitutorial [2007/09/17 22:42] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Mini Tutorial ====== | + | this page has been moved to [[en:tutorials:minitutorial|tutorials/minitutorial]] |
- | + | ||
- | The goal of this tutorial is to quickly show you how you can realize an application. To start, install Jelix as indicated on the [[en:manual:installation|installation]] page. We will consider that you are using the default configuration, | + | |
- | + | ||
- | + | ||
- | + | ||
- | ===== Jelix scripts ===== | + | |
- | + | ||
- | After that, open a console and go to the lib/jelix-scripts/ | + | |
- | + | ||
- | under linux : cd lib/ | + | |
- | under windows : cd lib\jelix-scripts\ | + | |
- | + | ||
- | This directory contains a script, jelix.php, which can make easy the creation and modification of different files of an application based on Jelix. You have to use it with the command line version of PHP and give it as parameter a Jelix command with some other parameters and options. | + | |
- | + | ||
- | <code bash> | + | |
- | php jelix.php [--application_name] command_name [options] [parameters] | + | |
- | </ | + | |
- | + | ||
- | To avoid giving the name of the application for each command, use this one : | + | |
- | + | ||
- | <code bash> | + | |
- | export JELIX_APP_NAME=helloapp | + | |
- | set JELIX_APP_NAME=helloapp (windows) | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ===== Creation of an application ===== | + | |
- | + | ||
- | Let's create the tree structure of the application using the createapp command : | + | |
- | + | ||
- | <code bash> | + | |
- | php jelix.php createapp | + | |
- | </ | + | |
- | + | ||
- | You will then get a helloapp/ directory, at the same level as the lib/ directory. His content is the following : | + | |
- | + | ||
- | helloapp/ | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + |